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
Base URL and authenticationHeadersModel lists and model selection
Error codes

Billing

Model pricingTroubleshooting calls
Request basics

Model lists and model selection

Find models published for the current API entry and choose the correct public model id.

Model products are isolated by API entry

An administrator may publish the same public model id to multiple internal entries as separate products. The model value or path model name must be available for the current entry; one entry's model list cannot prove another entry is available.

Query model lists

OpenAI Chat Completions

GET /v1/models returns products published for the Chat Completions entry.

Anthropic

GET /anthropic/v1/models returns the Anthropic-style model list.

Gemini

GET /v1beta/models returns the Gemini-style model list.

GET /v1/models
curl https://dingjiai.com/v1/models \
  -H "Authorization: Bearer YOUR_USER_API_KEY"

What the lists contain

Model lists are public discovery entries for model products and filter out unavailable items, returning only products that are publicly visible, enabled, and have an available upstream candidate. They are not complete native capability matrices; a real call checks the current entry, active product, balance, concurrency, and upstream candidates again.

Prop

Type

Model selection rules

Choose the API family and entry first

Responses, Codex Search, and Images Generations use public model ids explicitly enabled for their corresponding internal entries and currently have no dedicated public model list. Codex Search reuses the Responses model product and upstream candidates without a separate Search model or capability switch. The web-only openai_images_edits operation is used only by signed-in web /api/img/edits and is not a public API option; Count Tokens is an operation under Anthropic Messages. Use the OpenAI Chat list for Chat Completions, the Anthropic list for Anthropic Messages, and the Gemini list for Gemini.

Copy the product's public model id

Do not guess model names or paste a raw upstream model name unless DINGJIAI publishes that exact id.

Send a real request

A model call checks balance, concurrency, and upstream candidate selection again. Appearing in a model list does not guarantee a call is exempt from balance, concurrency, or upstream availability limits.

Console model endpoint is not a client integration API

The signed-in /api/models endpoint is for the frontend console UI to discover model products; it is not a native capability matrix or a developer client model-list API. Use the public entry for your API family instead: GET /v1/models only returns visible OpenAI Chat Completions products and does not prove Responses or Images operations are available.

Last updated on

HeadersResponses

On this page

Query model listsWhat the lists containModel selection rules