DINGJIAI
DINGJIAI
Quick start in 5 minutesWhat is DINGJIAI?

Online use

Online chatOpens in a new windowImage generationOpens in a new window

Popular Agents

Codex SetupClaude Code SetupOne-Click Setup

API Reference

API overview
Error codes

Billing

Model pricingTroubleshooting calls

Quick start in 5 minutes

Create an account, add balance, create an API key, and send your first model request.

Run the first path first

You do not need to understand every API detail before your first call. Prepare account balance, a user API Key, Base URL, and a model name.

Quick start

DINGJIAI exposes several public API families and entries. Chat Completions is the shortest common path; Responses, Anthropic Messages, Gemini GenerateContent, and Images Generations must use their matching protocols. Start with the public API overview when you need to choose an entry.

Create an account and sign in

Open the console, then register or sign in with your existing account.

Make sure the account has balance

Model calls are charged by actual usage. If a new account has no available balance, recharge it or ask an administrator to add balance.

Create a user API Key

Create and copy a user API Key in the console. This key is your credential for DINGJIAI, not an upstream provider key.

Copy a model name

Copy an available public model name from the console. Use that value in the model field.

Send the first chat request

Start with the OpenAI-compatible Chat Completions path. A normal response means the key, balance, model, and route are basically correct.

POST /v1/chat/completions
curl https://dingjiai.com/v1/chat/completions \
  -H "Authorization: Bearer YOUR_USER_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "MODEL_NAME_FROM_THE_CONSOLE",
    "messages": [
      { "role": "user", "content": "Introduce yourself in one sentence" }
    ]
  }'

The 4 values to remember

  • Base URL: usually https://dingjiai.com; some tools ask for the full /v1 URL.
  • API Key: the user API Key created in the DINGJIAI console.
  • Model name: copy it from the console instead of guessing.
  • request_id: keep it when an error happens so the request can be traced.

Next

If you want to connect an existing tool, continue with the tool integration guide. If you are writing code, start with the public API overview, then read Base URL and authentication.

Last updated on

What is DINGJIAI?

On this page

Quick startThe 4 values to rememberNext