Documentation IndexFetch the complete documentation index at: /llms.txtUse this file to discover all available pages before exploring further.
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
OpenAI 兼容的模型列表接口,返回当前 API Key 可用的所有模型及其支持的 API 格式。
/v1/models
curl https://www.anyfast.ai/v1/models \ -H "Authorization: Bearer YOUR_API_KEY"
from openai import OpenAI client = OpenAI( api_key="YOUR_API_KEY", base_url="https://www.anyfast.ai/v1" ) models = client.models.list() for model in models: print(f"{model.id} → {model.owned_by}")
Authorization: Bearer <api-key>
Content-Type: application/json
{ "data": [ { "id": "gpt-4o", "object": "model", "created": 1626777600, "owned_by": "openai", "supported_endpoint_types": ["openai"] }, { "id": "claude-sonnet-4-5-20250929", "object": "model", "created": 1626777600, "owned_by": "vertex-ai", "supported_endpoint_types": ["openai", "anthropic"] } ] }
id
model
object
"model"
created
owned_by
openai
vertex-ai
custom
xai
volcengine
codex
aws
coze
ali
minimax
supported_endpoint_types
anthropic
openai-response
gemini
image-generation
video
mj-*
401 {"error":{"message":"未提供令牌"}}
此页面对您有帮助吗?