English
  • 中文
  • English
English
  • 中文
  • English
Market
English
  • 中文
  • English
  1. Claude
  • Getting Started
  • Market
  • Chat Models
    • Claude
    • ChatGPT
    • Gemini
    • DeepSeek
    • Grok
    • Qwen
    • Kimi
    • GLM
    • Llama
    • Mistral
    • Cohere
    • Perplexity
    • MiniMax
    • Doubao
    • ERNIE
    • Hunyuan
    • Yi
  • Getting Started
  • Market
  • Image Models
    • Midjourney
    • Google
    • Seedream
    • FLUX
    • Imagen
    • Ideogram
    • Recraft
    • Stable Diffusion
    • DALL-E
    • Qwen Image
    • Hunyuan Image
    • MiniMax Image
    • Kling Image
  • Video Models
    • Sora
    • Veo
    • Kling
    • Runway
    • Pika
    • Luma
    • Hailuo
    • Seedance
    • Wan
    • PixVerse
    • Vidu
    • Hunyuan Video
    • MiniMax Video
    • Stable Video
  • Music Models
    • Suno
    • Udio
    • Stable Audio
    • ElevenLabs
    • Mureka
    • ACE Studio
    • Meta
    • Google Audio
    • Qwen Audio
    • OpenAI Audio
    • MiniMax Speech
    • Fish Audio
  • Chat Models
    • Gemini 3 Pro
    • Gemini 2.5 Pro
    • Gemini 2.5 Flash
    • DeepSeek V3.2
    • DeepSeek R1
    • Grok 4
    • Grok 4 Fast
    • Qwen3 Max
    • Qwen3 Coder
    • Kimi K2
    • GLM-4.6
    • Llama 4 Maverick
    • Mistral Large 3
    • Command A
    • Perplexity Sonar
    • MiniMax M2
    • Doubao Seed 1.6
    • ERNIE 5.0
    • Hunyuan Turbo
    • Yi-Lightning
    • Claude
      • Claude Opus 4.8
        POST
      • Claude Opus 4.7
        POST
      • Claude Haiku 4.5
        POST
      • Claude Fable 5
        POST
      • Claude Opus 4.6
        POST
      • Claude Sonnet 5
        POST
      • Claude Mythos 5
        POST
      • Claude Opus 4.6
        POST
    • ChatGPT
      • GPT-5.6 Sol
      • GPT-5.6 Terra
      • GPT-5.6 Luna
      • GPT-5.5
      • GPT-5.4 Pro
      • GPT-5.4 mini
      • GPT-5.4 nano
      • GPT-5.2 Codex
      • GPT-5.1 Codex
      • GPT Image 2
      • GPT Image 1.5
      • GPT Image 1 Mini
      • GPT-5.5 Pro
  • Image Models
    • Midjourney V7
    • Midjourney V6.1
    • Nano Banana Pro
    • Nano Banana
    • Gemini Flash Image
    • Seedream 4.5
    • Seedream 4.0
    • FLUX.2 Pro
    • FLUX.1 Kontext
    • Imagen 4
    • Ideogram 3.0
    • Recraft V3
    • Stable Diffusion 3.5
    • DALL-E 3
    • Qwen Image
    • Hunyuan Image
    • MiniMax Image
    • Kling Image
  • Video Models
    • Sora 2
    • Sora Turbo
    • Veo 3.1
    • Veo 3
    • Kling 2.5 Turbo
    • Kling 2.1
    • Runway Gen-4
    • Runway Gen-3 Alpha
    • Pika 2.2
    • Luma Ray 2
    • Hailuo 02
    • Seedance 1.0 Pro
    • Wan 2.2
    • PixVerse V5
    • Vidu Q1
    • Hunyuan Video
    • MiniMax Video-01
    • Stable Video Diffusion
  • Music Models
    • Suno v5
    • Suno v4.5
    • Udio 2
    • Udio 1.5
    • Stable Audio 2.0
    • ElevenLabs Music
    • Mureka O1
    • ACE-Step
    • MusicGen
    • AudioCraft
    • Lyra
    • Qwen Audio
    • GPT-4o Audio
    • MiniMax Speech
    • Fish Speech
  1. Claude

Claude Opus 4.8

POST
/v1/messages
As low as 3% of official pricing, Start
Example: at 0.2 model rate, pay 10.00 → usable $50.00. Balance is usable across all models. Actual pricing is subject to the website display.

Claude Opus 4.8 API Documentation#

Claude Opus 4.8 is designed for conversational AI, content generation, coding assistance, document analysis, and agent workflows. With YesAPI.online, you can access the model through a stable Base URL, unified authentication, and consistent request patterns.

Base URL#

https://yesapi.online/v1

Authentication#

Model Name#

FieldValue
Modelclaude-opus-4-8
API typechat completions API

Request Endpoint#

POST https://yesapi.online/v1/chat/completions

Request Parameters#

ParameterTypeRequiredDefaultDescription
modelstringYes-Fixed value: claude-opus-4-8
promptstringNo-Task prompt or instruction
messagesarrayYes-Conversation messages for chat models
streambooleanNofalseEnable streaming output for supported chat models
callback_urlstringNo-Callback URL for asynchronous media tasks

Request Example#

Response Example#

{
  "id": "task_or_response_example",
  "model": "claude-opus-4-8",
  "status": "succeeded",
  "created": 1784534400
}

Response Fields#

FieldTypeDescription
idstringRequest or task ID
modelstringModel used for the request
statusstringTask status for asynchronous APIs
usageobjectToken or usage details when available
errorobjectError details when the request fails

Python Example#

Node.js Example#

Error Codes#

StatusTypeHow to Fix
400Invalid requestCheck required fields and parameter formats
401UnauthorizedVerify your API key and Authorization header
402Insufficient balanceCheck account balance or plan quota
429Rate limitedReduce concurrency or add retry backoff
500Service errorRetry later and keep the request ID for support

Best Practices#

Keep prompts explicit and include output requirements.
Store request IDs and business IDs for tracing.
Use callbacks or polling for asynchronous media generation.
Use the YesAPI recharge page and model list to manage cost and model selection.

Related Links#

API domain: https://yesapi.online
Models: Models
Recharge: Recharge
Note: This API page documents the unified YesAPI request format. Users need to provide their own YesAPI API key when testing. Model availability depends on the current YesAPI console status.
As low as 3% of official pricing, Start
Example: at 0.2 model rate, pay 10.00 → usable $50.00. Balance is usable across all models. Actual pricing is subject to the website display.

Request

Body Params application/jsonRequired

Examples

Responses

🟢200OK
application/json
Successful response
Bodyapplication/json

🟠401Unauthorized
🟠429
Request Request Example
Shell
JavaScript
Java
Swift
curl --location '/v1/messages' \
--header 'Content-Type: application/json' \
--data '{
    "model": "claude-opus-4-8",
    "messages": [
        {
            "role": "user",
            "content": "Explain how to integrate YesAPI in three points"
        }
    ],
    "temperature": 0.7,
    "stream": false,
    "max_tokens": 1024
}'
Response Response Example
{
    "id": "chatcmpl_example",
    "object": "chat.completion",
    "model": "claude-opus-4-8",
    "choices": [
        {
            "index": 0,
            "message": {
                "role": "assistant",
                "content": "You can integrate YesAPI with a Base URL, API key, and model name."
            },
            "finish_reason": "stop"
        }
    ],
    "usage": {
        "prompt_tokens": 32,
        "completion_tokens": 24,
        "total_tokens": 56
    }
}
Previous
Yi-Lightning
Next
Claude Opus 4.7
Built with