Text and inference models

Access text and inference models according to the actual model and channel configuration of this site.

Text models can be used for question answering, coding, extraction, and reasoning. Model family names are not a substitute for precise IDs, nor do they alone demonstrate tool, vision, and protocol capabilities.

Step 1: Select available models

Compare candidates on the Price Page, and then use the current Key to query /v1/models. Log exact ID, group, protocol, context and output cap. The model list does not return the full parameter contract.

Step 2: Verify minimal text

curl --fail-with-body https://dunduntoken.com/v1/chat/completions   -H "Authorization: Bearer $DUNDUN_API_KEY"   -H "Content-Type: application/json"   -d '{"model":"MODEL_ID","messages":[{"role":"user","content":"只回复 OK"}]}'

This command is used with Chat-enabled models. When using Responses, Messages or Gemini native protocols, use the structure of the corresponding tutorial instead of just changing the endpoint.

Step 3: Add the required capabilities

Capabilities Acceptance Points
Reasoning Correctness, budget, latency and actual cost
Tools Parameters, call ID, result return and multi-round end
Structured output Full JSON, schema and business rules
Vision Input format and image recognition accuracy
Long context Key information retention and truncation

The inference model may not accept traditional parameters such as temperature. Use the minimum request first and then add it based on actual support. Don’t require all models to output internal inference text as a success condition.

Step 4: Production Evaluation

Keep the desensitization evaluation set and compare accuracy, first word delay, total time and cost. Alternate models need to be independently verified for history and tool compatibility, and should not be directly replaced just because they belong to the same family.

FAQ

400 First check the parameters and roles; check the content type and end reason for empty output; check the output upper limit for length truncation; check the protocol and capabilities for tool failure. Request IDs and call records help confirm actual usage patterns.

Select models by scene · Select protocols