Yomi APIYomi APIDocs Open console

中文

Yomi API / Documentation / List and query models

API reference

List and query models

Use the Models API to query models available to the current key, display model choices dynamically or validate a model ID.

Retrieve the model list

GET https://api.yomiapi.com/v1/models

Request headers:

Authorization: Bearer YOUR_API_KEY

Python example

from openai import OpenAI

client = OpenAI(
    api_key="YOUR_API_KEY",
    base_url="https://api.yomiapi.com/v1"
)
models = client.models.list()
for model in models.data:
    print(model.id)

cURL example

curl https://api.yomiapi.com/v1/models \
  -H "Authorization: Bearer YOUR_API_KEY"

Node.js example

import OpenAI from 'openai';

const client = new OpenAI({
  apiKey: 'YOUR_API_KEY',
  baseURL: 'https://api.yomiapi.com/v1'
});

async function main() {
  const models = await client.models.list();
  for (const model of models.data) {
    console.log(model.id);
  }
}
main();

Example response

{
  "object": "list",
  "data": [
    {"id": "gpt-5.6-sol", "object": "model", "created": 1234567890, "owned_by": "openai"},
    {"id": "claude-sonnet-5", "object": "model", "created": 1234567890, "owned_by": "anthropic"},
    {"id": "kimi-k3", "object": "model", "created": 1234567890, "owned_by": "moonshot"}
  ]
}

Retrieve one model

GET https://api.yomiapi.com/v1/models/{model_id}
model = client.models.retrieve("deepseek-v4-flash")
print(model)

Model catalog

The table below lists the platform's main offered models. For the complete list, refer to the Model Catalog (Models in the console) and the actual /v1/models response. Use the IDs in the table for the model parameter in your code.

Text and multimodal models

ModelContextPositioning
deepseek-v4-flash1MLightweight and very fast; a first choice for frequent calls
deepseek-v4-pro1MDeep reasoning with exceptional value
claude-opus-4-61MHigh-end coding and reasoning
claude-opus-4-71MAdvanced professional flagship
claude-opus-4-8200KTop-tier reasoning for long documents and complex agents
claude-opus-51MLeading deep reasoning
claude-fable-51MTop-tier flagship with peak performance
claude-sonnet-4-6200KBalanced and efficient for everyday use
claude-sonnet-51MBalances speed and intelligence for production agents
gpt-5.41.05MPrevious-generation flagship; mature and stable
gpt-5.51.05MA mainstay for deep thinking
gpt-5.6-sol1.05MGeneral-purpose flagship with leading reasoning and coding
gpt-5.6-terra1.05MSpecialized coding with strong value
glm-5.21MChinese flagship with all-round improvements
kimi-k31MVery long context; a benchmark for long documents

Specialized models

ModelPositioning
Image, video, audio and embedding models are not shown in the text catalog. See the Model Catalog (Models in the console) for currently available models
Available models may differ according to the key's group. /v1/models returns the models actually available to the current key. Use this endpoint in applications instead of hardcoding the list.