Skip to main content

Claude API · AnyAIGC

Every Claude model, one API key

The native Anthropic /v1/messages API for all 11 Opus, Sonnet, Haiku and Fable models, starting at about 12% of Anthropic's list price. Unlimited concurrency. Point your existing code at a new base URL and go.

  • Endpoint /v1/messages
  • Models 11
  • Price Up to 88% off
  • Concurrency Unlimited
  • Business Self-service invoices

Current Claude models

Anthropic's four current models, all on the same API key. Switch the model field to match the task and the budget.

  • Fable 5.2

    Anthropic's next-generation intelligence for long-running agents, with up to 30% faster output than Fable 5.1.

    • Long-running agents and open-ended technical work
    • Multi-agent orchestration (Advisor / Orchestrator)
    • Deep research and data-heavy analysis
    Input
    $1.9760List $8
    Output
    $9.8820List $40
    Cache hits
    $0.0494List $0.20
    Explore Claude Fable 5.2 →
  • Opus 5.5

    A hybrid reasoning model built for serious coding and AI agents.

    • Large codebase refactors and migrations
    • Multistep agents and tool use
    • Long-document analysis and hard reasoning
    Input
    $0.4941List $4
    Output
    $2.4710List $20
    Cache hits
    $0.0247List $0.20
    Explore Claude Opus 5.5 →
  • Sonnet 5.5

    The faster, lower-cost complement to Opus 5.5, at half its list price.

    • Well-scoped everyday coding
    • Bug fixes and code review
    • Polished documents, slides and spreadsheets
    Input
    $0.2471List $2
    Output
    $1.2350List $10
    Cache hits
    $0.0124List $0.10
    Explore Claude Sonnet 5.5 →
  • Haiku 5.5

    Anthropic calls it the fastest, most efficient model in the Claude 5.5 family.

    • High-volume classification and routing
    • Sub-agents on coding work
    • Real-time support and browser tasks
    Input
    $0.0247List $0.10
    Output
    $0.1235List $0.50
    Cache hits
    $0.0025List $0.01

    Prompts over 100K tokens are billed at 5x

    Explore Claude Haiku 5.5 →
Older models are still available: Fable 5.1, Opus 5, Opus 4.8, Opus 4.7, Opus 4.6, Fable 5 and Sonnet 5 See all pricing →

Claude API pricing for every model

Per-token billing at fixed rates, with no subscription or monthly fee. Opus, Sonnet and Haiku are 88% off Anthropic's list price; Fable is 75% off.

Price per million tokens (USD) for every Claude model, AnyAIGC vs. Anthropic list price
ModelStatusInputOutput5-min cache write1-hour cache writeCache hitsList input/outputYou save
Claude Opus 5.5claude-opus-5-5Latest$0.4941$2.4710$0.6177$0.9883$0.0247$4 / $2088%
Claude Sonnet 5.5claude-sonnet-5-5Latest$0.2471$1.2350$0.3088$0.4941$0.0124$2 / $1088%
Claude Haiku 5.5claude-haiku-5-5Latest$0.0247$0.1235$0.0309$0.0494$0.0025$0.10 / $0.5075%
Claude Fable 5.2claude-fable-5-2Latest$1.9760$9.8820$2.4710$3.9530$0.0494$8 / $4075%
Claude Fable 5.1claude-fable-5-1Previous · still available$2.4710$12.3530$3.0880$4.9410$0.0618$10 / $5075%
Claude Opus 5claude-opus-5Legacy · retires 2027-07 at earliest$0.6177$3.0880$0.7721$1.2350$0.0618$5 / $2588%
Claude Fable 5claude-fable-5Legacy · retires 2027-06 at earliest$2.4710$12.3530$3.0880$4.9410$0.2471$10 / $5075%
Claude Sonnet 5claude-sonnet-5Legacy · retires 2027-06 at earliest$0.2471$1.2350$0.3088$0.4941$0.0247$2 / $1088%
Claude Opus 4.8claude-opus-4-8Legacy · retires 2027-05 at earliest$0.6177$3.0880$0.7721$1.2350$0.0618$5 / $2588%
Claude Opus 4.7claude-opus-4-7Legacy · retires 2027-04 at earliest$0.6177$3.0880$0.7721$1.2350$0.0618$5 / $2588%
Claude Opus 4.6claude-opus-4-6Legacy · retires 2027-02 at earliest$0.6177$3.0880$0.7721$1.2350$0.0618$5 / $2588%

USD per million tokens. Haiku 5.5 prices apply to prompts up to 100K tokens; longer prompts are billed at 5x. List prices are from Anthropic. See the AnyAIGC model catalog for live prices.

The native Anthropic API, fully supported

Requests use Anthropic's Messages format, so the official SDKs and your existing code carry over.

  • Messages API

    Call /v1/messages. With Anthropic's official SDK, set the base URL to https://anyaigc.ai.

  • Prompt caching

    Add cache_control to a content block for 5-minute or 1-hour caching. Cache hits cost about 2.5–10% of the regular input price.

  • Tool use and structured output

    Define functions with tools, or constrain output with a JSON schema to plug into your systems.

  • Adaptive thinking

    Use the thinking and effort parameters. Per Anthropic's docs, models such as Fable 5.1 and Sonnet 5 use adaptive thinking by default; see each model page.

  • Image and PDF input

    The AnyAIGC docs include PDF document examples, and Anthropic's docs cover image input for Claude models.

  • Streaming

    Set "stream": true to receive output as it's generated, for chat UIs and long responses.

Get started in three steps

  1. Sign up and add credit: create an account at anyaigc.ai. Your balance works across every model on the platform.
  2. Create an API key: create a token in the console and copy the key that starts with sk-.
  3. Send a request: call https://anyaigc.ai/v1/messages with an Anthropic Messages request, using Authorization: Bearer for auth.
cURL
curl https://anyaigc.ai/v1/messages \
  -H "Authorization: Bearer $ANYAIGC_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "claude-sonnet-5-5",
    "max_tokens": 1024,
    "messages": [
      {"role": "user", "content": "Explain prompt caching in three sentences"}
    ]
  }'
Python · anthropic SDK
import os, anthropic

client = anthropic.Anthropic(
    base_url="https://anyaigc.ai",
    api_key=os.environ["ANYAIGC_API_KEY"],
)
message = client.messages.create(
    model="claude-opus-5-5",
    max_tokens=1024,
    messages=[{"role": "user", "content": "Write unit tests for: def add(a, b): return a + b"}],
)
print(message.content[0].text)

For more parameters (tools, thinking, streaming, PDF and image input, and more), see the AnyAIGC Messages API docs. Fields mean the same as in Anthropic's API docs.

Use it in Claude Code

Install and configure AnyAIGC with one command, or edit settings.json yourself. Run Opus 5.5 as the main model and Haiku 5.5 for background tasks and sub-agents.

One-line install

macOS / Linux
curl -fsSL https://www.anyaigc.ai/install.sh | bash -s claude
# Windows PowerShell: irm https://www.anyaigc.ai/install.ps1 | iex

settings.json

~/.claude/settings.json
{
  "env": {
    "ANTHROPIC_BASE_URL": "https://anyaigc.ai",
    "ANTHROPIC_AUTH_TOKEN": "sk-your-api-key",
    "ANTHROPIC_MODEL": "claude-opus-5-5",
    "ANTHROPIC_DEFAULT_OPUS_MODEL": "claude-opus-5-5",
    "ANTHROPIC_DEFAULT_SONNET_MODEL": "claude-sonnet-5-5",
    "ANTHROPIC_DEFAULT_HAIKU_MODEL": "claude-haiku-5-5",
    "API_TIMEOUT_MS": "300000"
  }
}

For full steps and common errors, see the Claude Code setup guide.

Claude API for teams and enterprises

Top up, issue invoices yourself, and work with a dedicated support and technical contact.

  • Invoices

    Issue them yourself

    Issue an invoice in the console for the amount you actually topped up, whenever you need one.

  • Dedicated support

    Account and technical contacts

    Work with a dedicated support contact and technical engineer for onboarding, migration and troubleshooting.

Payment methods
  • WeChat Pay
  • Alipay
  • USDT
  • Credit card

Why teams trust AnyAIGC

Trial credit, top-ups, refunds, data handling and billing, spelled out up front.

  • 5M free tokens to start

    New accounts get trial credit, so you can test before you top up.

  • Top up from $1, refundable

    Top up from $1. Unused balance can be refunded with no fee.

  • Official channels, real models

    Requests go to official model channels, never cheaper or reverse-engineered substitutes.

  • No retention, no training

    Unless the law requires it, your prompts and outputs are not persistently stored or used for training. See the privacy policy.

  • Transparent billing, spend caps

    See tokens and cost for every request in the console, and set a quota on each API key.

  • 24/7 support

    Contact support any time about integration, billing or incidents.

Claude API FAQ

How much does the Claude API cost?

Every Claude model on AnyAIGC is billed per token in USD per million tokens, with no subscription or monthly fee. Current models: Opus 5.5 at $0.4941 input and $2.4710 output; Sonnet 5.5 at $0.2471 input and $1.2350 output; Haiku 5.5 at $0.0247 input and $0.1235 output; Fable 5.2 at $1.9760 input and $9.8820 output. Opus and Sonnet are 88% off Anthropic's list price, Haiku is 75% off, and Fable is 75% off. Cache writes, cache hits and legacy models are in the pricing table on this page; see the AnyAIGC model catalog for live prices.

How do I get a Claude API key?

Sign up at anyaigc.ai, add credit, and create a token in the console. The same key works for all 11 Claude models on this page and 300+ other models on the platform, all drawing from one balance.

Does the AnyAIGC Claude API work with Anthropic's official SDKs?

Yes. The endpoint is https://anyaigc.ai/v1/messages and the request body follows Anthropic's Messages format (model, max_tokens, system, messages, tools, cache_control and so on). Authenticate with Authorization: Bearer and your API key. With the official anthropic SDK, set base_url to https://anyaigc.ai and the rest of your code stays the same.

Which Claude models are available, and which should I use?

AnyAIGC offers 11 Claude models. The current ones are Opus 5.5, Sonnet 5.5, Haiku 5.5 and Fable 5.2. Use Opus 5.5 for complex coding and AI agents; Sonnet 5.5 for well-scoped everyday coding, bug fixes and documents; Haiku 5.5, which Anthropic calls the fastest and most efficient model in the Claude 5.5 family, for high-volume classification, real-time support and sub-agents; and Fable 5.2 for the most ambitious open-ended technical work and long-running agents. The previous Fable 5.1 and legacy Opus 5, Fable 5, Sonnet 5, Opus 4.8, Opus 4.7 and Opus 4.6 remain available for existing projects.

What's the difference between Claude Opus and Sonnet?

Anthropic positions Sonnet 5.5 as a faster, lower-cost complement to Opus 5.5. Opus 5.5 is aimed at complex work that needs careful judgment; Sonnet 5.5 is built for well-scoped everyday tasks, bug fixes, and polished documents, slides and spreadsheets. Sonnet 5.5 costs half as much: on AnyAIGC it is $0.2471 input and $1.2350 output, versus $0.4941 and $2.4710 for Opus 5.5 (per million tokens).

What's the difference between Claude Fable and Opus?

Anthropic describes Fable 5.2 as next-generation intelligence for long-running agents, built for the most ambitious open-ended technical work. Anthropic recommends starting most coding and knowledge work with Claude Opus 5.5 and moving up to Fable as needed. On AnyAIGC, Fable 5.2 costs $1.9760 input and $9.8820 output per million tokens, versus $0.4941 and $2.4710 for Opus 5.5. Both use the same key, so you can switch per task by changing the model field.

Can I still use older Claude models?

Yes. Anthropic lists Opus 5, Fable 5, Sonnet 5, Opus 4.8, Opus 4.7 and Opus 4.6 as legacy, and they are all still available on AnyAIGC. Anthropic's earliest retirement dates are Feb 5, 2027 for Opus 4.6, Apr 16, 2027 for Opus 4.7, May 28, 2027 for Opus 4.8, Jun 9, 2027 for Fable 5, Jun 30, 2027 for Sonnet 5, and Jul 24, 2027 for Opus 5. The previous Fable 5.1 is also still available. For new projects, use the matching current model.

Can I use it with Claude Code?

Yes. Run curl -fsSL https://www.anyaigc.ai/install.sh | bash -s claude to install and configure everything, or set ANTHROPIC_BASE_URL to https://anyaigc.ai, ANTHROPIC_AUTH_TOKEN to your API key and ANTHROPIC_MODEL to claude-opus-5-5 in the env block of ~/.claude/settings.json. Set ANTHROPIC_DEFAULT_HAIKU_MODEL to claude-haiku-5-5 to run background tasks and sub-agents on Haiku 5.5.

Are there concurrency limits?

No. AnyAIGC doesn't cap concurrency on any Claude model, and every user gets this by default, so batch jobs and parallel agents don't have to queue.

Can I get an invoice from AnyAIGC?

Yes. You can issue invoices yourself in the console, for the amount you actually topped up.

Which payment methods are supported?

You can top up with WeChat Pay, Alipay, USDT or a credit card. Your balance is in USD and works across every model on the platform. Invoices can be issued in the console for the amount you topped up.

Is there free trial credit for new users?

Yes. New accounts get 5 million tokens of trial credit, so you can test before deciding to top up. Top-ups start at $1.

Can I get a refund on my balance?

Yes. Unused balance can be refunded with no fee. Contact support to start a refund.

Are these the real models? Is my data safe?

Requests go to official model channels, never cheaper or reverse-engineered substitutes. Unless the law requires it, we do not persistently store your prompts or outputs or use them for training, and the console shows tokens and cost for every request.

Start building with Claude

Sign up, create an API key, and call any Claude model from your code or Claude Code in a few minutes.