Aiflow

模型

使用 Aiflow 暴露的 /v1/models 目录。

Aiflow 暴露模型目录:

curl https://api.tryaiflow.io/v1/models

每个条目遵循 Model schema。

FieldType
idstring
objectstring
createdinteger
owned_bystring
namestring
familystring
attachmentboolean
reasoningboolean
tool_callboolean
structured_outputboolean
temperatureboolean
knowledgestring
release_datestring
last_updatedstring
modalitiesobject
open_weightsboolean
costobject
limitobject

按客户端选择模型

Codex 的模型在 ~/.codex/config.toml 中设置。

model = "gpt-5.4"

如果 Claude Code 的 picker 中没有目标模型,可以通过环境变量指定。

ANTHROPIC_MODEL="claude-sonnet-4-6" claude

使用 Gemini 时,在 /v1/chat/completions 或 /v1/responses 中传入 ag/gemini-... ID。详见 Gemini。