English
  • 中文
  • English
English
  • 中文
  • English
Market
English
  • 中文
  • English
    • 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
        • Claude Opus 4.7
        • Claude Haiku 4.5
        • Claude Fable 5
        • Claude Opus 4.6
        • Claude Sonnet 5
        • Claude Mythos 5
        • Claude Opus 4.6
      • 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

    Getting Started

    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.
    Welcome to YesAPI. This guide walks you through the essential information you need before integrating YesAPI into production: available models, pricing and discounts, API keys, security, request flow, limits, troubleshooting, and support.
    YesAPI provides a unified, stable, cost-effective API entry point for Claude, GPT, image, video, music, and other mainstream AI models. Please read this page carefully before going live.

    Getting Started#

    1. Available Models & Market#

    You can browse the model index on Market, or jump directly into a model category:
    CategoryUse CasesEntry
    Chat ModelsChat, writing, coding, agents, knowledge base Q&AChat Models
    Image ModelsText-to-image, image editing, product images, design assetsImage Models
    Video ModelsText-to-video, image-to-video, short clips, ad creativesVideo Models
    Music ModelsMusic generation, songs, vocals, background musicMusic Models
    Popular entries:
    Claude: Claude Opus 4.8, Claude Sonnet 5, Claude Haiku 4.5
    GPT: GPT-5.6 Sol, GPT-5.5 Pro, GPT-5.4 mini
    Image: Seedream 4.5, GPT Image 2, Midjourney v7
    Video: Sora 2, Veo 3, Kling 2.5
    Music: Suno v5, Udio 2

    2. Pricing & Discounts#

    YesAPI is designed for developers and teams that need long-term, high-volume, stable access to AI models.
    YesAPI converts subscription-based model access into unified API access.
    Platform campaigns, recharge bonuses, and model-side cost advantages can combine into a lower overall usage cost.
    Model availability, pricing, and billing rules should always be checked in the current console.
    Useful links:
    Models: Models
    Recharge: Recharge
    Website: yesapi.online

    3. Creating and Securing Your API Key#

    Every request must include your API key in the request headers:
    Security recommendations:
    Never expose your API key in frontend code, mobile apps, or public repositories.
    Route requests through your own backend whenever possible.
    Use separate keys for different projects to simplify usage tracking and rotation.
    Rotate the key immediately if you suspect exposure.

    4. Base URL#

    Main API domain:
    https://yesapi.online
    OpenAI-compatible SDK configuration:
    Claude / Anthropic-style tools can point to YesAPI according to the tool's configuration requirements:

    5. Request Flow#

    1.
    Choose a model page, such as GPT-5.6 Sol or Claude Opus 4.8.
    2.
    Copy the model name into the model field.
    3.
    Use https://yesapi.online or https://yesapi.online/v1 as the Base URL.
    4.
    Add Authorization: Bearer sk-your-api-key to the headers.
    5.
    Call the Chat, Messages, Images, Video, or Music endpoint according to the model type.
    6.
    Log responses, errors, latency, and usage for production debugging.

    6. First API Call#

    7. SDK Examples#

    Python#

    Node.js#

    8. Streaming#

    Streaming is recommended for chat, coding, and long-form generation:
    {
      "model": "gpt-5-6-sol",
      "messages": [{"role": "user", "content": "Write a product introduction"}],
      "stream": true
    }
    When streaming is enabled, the server returns incremental content through SSE. The frontend should read chunks line by line and close the connection when the stream ends.

    9. Limits and Production Tips#

    Chat products: limit per-user concurrency and enable streaming.
    Batch jobs: use a queue and cap retry attempts.
    Image, video, and music: use longer timeouts and avoid duplicate submissions.
    Agents and coding tasks: log the full chain and set maximum step limits.
    Cost-sensitive tasks: choose models by task instead of sending every request to the highest-tier model.

    10. Error Handling#

    StatusCommon CauseRecommendation
    400Invalid parameters, wrong model name, invalid messages formatCheck the model page and request body
    401Missing, invalid, or expired API keyCheck the Authorization header
    402Insufficient balance or quotaCheck balance and recharge entry
    404Wrong path or endpoint typeCheck Base URL and endpoint path
    429Too many requests or too much concurrencyReduce concurrency and add backoff
    500Upstream or service errorLog request details and retry later

    11. Support#

    When reporting an issue, prepare:
    Request time and request path
    Model name
    Status code and response body
    Whether streaming was enabled
    Whether it was a batch or high-concurrency task
    Then check the corresponding model page, or visit yesapi.online for platform access.
    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.
    Next
    Market
    Built with