Skip to content

Spexo

Unified API Gateway for Vast Range of AI Models

Close

🚀 Quickstart

1
  • Get Started with 123API in 5 Minutes: Send Your First Chat Request

🗂️ Model Catalog

1
  • Best Conversation Models of 2026 Compared: GPT vs Claude vs Gemini vs DeepSeek

📖 Cookbook / Tutorials

1
  • Build an AI Chatbot from Scratch with 123API

💳 Cost & Billing

1
  • 7 Ways to Cut Your AI API Costs by Up to 70%

❓ FAQ & Troubleshooting

1
  • 401 / 403 Auth Failure: 123API Key Troubleshooting
View Categories
  • 首页
  • Doc
  • 🚀 Quickstart
  • Get Started with 123API in 5 Minutes: Send Your First Chat Request

Get Started with 123API in 5 Minutes: Send Your First Chat Request

1 min read

Want to talk to a large language model through 123API but don’t want to read a 40-page manual first? This quickstart gets you from zero to a working chat request in about five minutes. 123API is an AI API aggregator: one key, one OpenAI-compatible endpoint, and access to 100+ models from OpenAI, Anthropic, Google, DeepSeek, and more.

What you need #

  • A free 123API account.
  • An API key from the dashboard.
  • Any HTTP client (curl, Python requests, or Node.js fetch).

Step 1 — Create your API key #

Open the dashboard, go to API Keys, and click Create Key. Copy it somewhere safe and store it as an environment variable rather than hard-coding it:

Step 2 — Send your first request #

123API speaks the OpenAI Chat Completions format, so existing OpenAI code works with a single base_url change:

That is the entire integration. For language-specific snippets, see the API Reference.

Step 3 — Try it without code #

Prefer clicking to coding? Open the Playground and send a message to any model in the model catalog with zero setup.

Next steps #

  • Browse the model catalog to pick the right model for your task.
  • Read the cost optimization guide before going to production.
  • Explore official SDKs for Python and Node.js.

FAQ

Do I need to install an SDK? No. The endpoint is plain HTTP and OpenAI-compatible. Can I use my existing OpenAI code? Yes — point base_url at https://api.123api.ai/v1.

Suggested internal links (positions)

  1. After “language-specific snippets” in Step 2 → API Reference (anchor: “API Reference”).
  2. In Step 3 → model catalog (anchor: “model catalog”).
  3. Under “Next steps” → cost optimization guide (anchor: “cost optimization guide”).
  4. Under “Next steps” → official SDKs (anchor: “official SDKs”).

更新 3 9 月, 2026

您的感觉是什么

  • Happy
  • 常规
  • Sad

分享这篇文章 :

  • Facebook
  • X
  • LinkedIn
  • Pinterest
Get Started with 123API in 5 Minutes: Send Your First Chat RequestGet Started with 123API in 5 Minutes: Send Your First Chat Request

发表回复 取消回复

您的邮箱地址不会被公开。 必填项已用 * 标注

内容目录
  • What you need
  • Step 1 — Create your API key
  • Step 2 — Send your first request
  • Step 3 — Try it without code
  • Next steps
Copyright © 2026 123API | Powered by Spexo Elementor Templates