API overview
DINGJIAI API families, public entries, authentication, and model selection.
Choose the API family or entry before choosing a model
DINGJIAI exposes public API families and native wire entries for OpenAI Chat Completions, OpenAI Responses, Images Generations, Anthropic Messages, and Gemini GenerateContent. Images Edits is currently a signed-in web-only internal entry, and Count Tokens is an operation under Anthropic Messages rather than a separate top-level protocol. Use the path, headers, and request body for the entry you choose; the gateway does not automatically translate one API family or protocol into another.
Public API families and entries
| API family or entry | Public path | Authentication |
|---|---|---|
| OpenAI Chat Completions | POST /v1/chat/completions or POST /chat/completions | Authorization: Bearer <DINGJIAI user API key> |
| OpenAI Responses | POST /v1/responses | Authorization: Bearer <DINGJIAI user API key> |
| Codex Search capability | POST /v1/alpha/search | Authorization: Bearer <DINGJIAI user API key> |
| Images API · Generations | POST /v1/images/generations | Authorization: Bearer <DINGJIAI user API key> |
| Anthropic Messages | POST /v1/messages or POST /anthropic/v1/messages | x-api-key: <DINGJIAI user API key> |
| Anthropic Messages · Count Tokens | POST /v1/messages/count_tokens or POST /anthropic/v1/messages/count_tokens | x-api-key: <DINGJIAI user API key> |
| Gemini GenerateContent | POST /v1beta/models/{model}:generateContent | x-goog-api-key: <DINGJIAI user API key> |
| Gemini StreamGenerateContent | POST /v1beta/models/{model}:streamGenerateContent | x-goog-api-key: <DINGJIAI user API key> |
Codex Search is a capability used in the Responses workflow, not a separate top-level API family or billing system. Count Tokens is an operation under Anthropic Messages. Images Edits is currently a private signed-in web operation at POST /api/img/edits; /v1/images/edits is not a public API entry.
OpenAI Responses
OpenAI Responses API family using /v1/responses, settled by Responses usage fields.
Codex Search capability
Search transport triggered by Codex during a Responses workflow; no separate top-level protocol or billing.
OpenAI Chat Completions
OpenAI Chat Completions API family supporting /v1/chat/completions and /chat/completions.
Anthropic Messages
Anthropic Messages API family using /v1/messages or /anthropic/v1/messages with x-api-key.
Gemini GenerateContent
Gemini API family GenerateContent operation using /v1beta/models/{model}:generateContent and native usageMetadata.
Images API · Generations
Public Images API Generations operation; Images Edits is web-only and Count Tokens belongs to Anthropic Messages.
Shortest integration path
Choose the API family or entry for your client
New OpenAI projects and Codex-like tools should start with Responses; existing OpenAI-compatible clients typically use Chat Completions; Claude/Anthropic tools use Messages; Gemini native clients use GenerateContent. See Base URL and authentication for paths and headers across all public entries.
Query or copy the model product for that entry
Model products are identified by their public model id. DINGJIAI may publish the same public model id to multiple internal entries; availability on one entry does not prove it is available on another, and a model list from entry A does not prove entry B is available.
Send requests with a user API Key
Use a user API Key created in the DINGJIAI console, never an upstream provider key.
Troubleshoot results with request_id
Responses include the X-Request-Id header, and OpenAI- or Gemini-style error bodies also include request_id. Keep it when diagnosing issues instead of relying only on screenshots of error text.
Global facts
Prop
Type
Last updated on