Skip to Content
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

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 entryPublic pathAuthentication
OpenAI Chat CompletionsPOST /v1/chat/completions or POST /chat/completionsAuthorization: Bearer <DINGJIAI user API key>
OpenAI ResponsesPOST /v1/responsesAuthorization: Bearer <DINGJIAI user API key>
Codex Search capabilityPOST /v1/alpha/searchAuthorization: Bearer <DINGJIAI user API key>
Images API · GenerationsPOST /v1/images/generationsAuthorization: Bearer <DINGJIAI user API key>
Anthropic MessagesPOST /v1/messages or POST /anthropic/v1/messagesx-api-key: <DINGJIAI user API key>
Anthropic Messages · Count TokensPOST /v1/messages/count_tokens or POST /anthropic/v1/messages/count_tokensx-api-key: <DINGJIAI user API key>
Gemini GenerateContentPOST /v1beta/models/{model}:generateContentx-goog-api-key: <DINGJIAI user API key>
Gemini StreamGenerateContentPOST /v1beta/models/{model}:streamGenerateContentx-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

One-Click SetupBase URL and authentication

On this page

Public API families and entriesShortest integration pathGlobal facts