NewObject Storage is live: S3-compatible, 10 GB of storage free every month, pay as you go beyond that.Learn more

OpenCode Zen

gpt-5.1-codex API

Call gpt-5.1-codex by OpenCode Zen through one OpenAI-compatible API. Keep your SDK, change the base URL, and pay per token from your Yeap balance.

GPT-5.1 Codex is an AI model provided by opencode.

  • 推理
  • 工具
  • 文件
  • 多模态
  • 400K

New LLM API accounts get $5 of free credit.

Quick start

Call gpt-5.1-codex in a few lines

Use any OpenAI SDK or plain HTTP. Point the base URL at Yeap Cloud and set the model name.

curl https://llm.yeap.cloud/v1/chat/completions \
  -H "Authorization: Bearer $YEAP_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "gpt-5.1-codex",
    "messages": [{"role": "user", "content": "Hello"}]
  }'

gpt-5.1-codex variants

Same model with a different reasoning effort, mode or snapshot. Use the exact name in the model field.

ModelInput / 1M tokensOutput / 1M tokens
gpt-5.1-codex-high$1.25$10
gpt-5.1-codex-low$1.25$10
gpt-5.1-codex-medium$1.25$10
gpt-5.1-codex-xhigh$1.25$10