Skip to main content
AnyAIGC

OpenAI · GPT API

GPT API

Every OpenAI GPT model, one API key

One key for all 12 GPT-6, GPT-5.6 and GPT-5.5 models at up to 95% off list price. Works with the OpenAI SDK, Chat Completions and Responses, with unlimited concurrency.

  • Models 12
  • Endpoints /v1/chat/completions · /v1/responses
  • Price Up to 95% off
  • Concurrency Unlimited
  • Business Self-service invoices

Pick a model by task

Not sure where to start? Pick by the job in front of you and switch any time. The positioning below follows OpenAI's own descriptions.

  • 01 · Hardest work

    Hardest projects, professional documents and research → GPT-6.2 Astra

    OpenAI calls GPT-6.2 Astra its new frontier model for the hardest projects, with API list prices below GPT-6 Astra. $0.3971 per 1M input tokens.

  • 02 · Default

    Everyday coding and agents → GPT-6.2 Sol

    OpenAI calls GPT-6.2 Sol its go-to model for everyday work, smarter and more efficient than GPT-6.1 Sol at the same list price. A good default. $0.0993 per 1M input tokens.

  • 03 · Volume

    Classification, extraction and summaries → GPT-6 Luna

    OpenAI calls Luna its fastest and most cost-effective tier, for scoped, frequent automations. $0.0135 per 1M input tokens.

  • 04 · Codex

    Coding in Codex → GPT-6.2 Sol + GPT-6.2 Astra

    Use gpt-6.2-sol for day-to-day changes and gpt-6.2-astra for hard multi-file problems. Codex uses the Responses API; see the Codex section below.

  • 05 · Accuracy

    Research where accuracy matters most → GPT-5.5 Pro

    OpenAI says it uses more compute to think harder on extremely complex problems. Responses API only (/v1/responses) and priced high, so save it for critical requests.

  • 06 · Vision and computer use

    Read screens, fill forms, parse drawings, write copy → GPT-6.1 Terra

    OpenAI says Terra excels at visual reasoning, precise computer use and clear writing, finishes tasks more than 3× faster than Sol and Astra, and lists at half of Sol's price. $0.0496 per 1M input tokens.

GPT API pricing for every model

Billed per token at fixed rates, with no subscription or monthly fee. Most models are about 5% of OpenAI list price (95% off), Luna about 13.5%, and GPT-5.5 Pro about 59%.

Price per 1M tokens (USD) for every GPT model, AnyAIGC vs OpenAI list price
ModelGeneration / statusInputOutputCached inputOpenAI input / outputSavings
GPT-6.2 Astragpt-6.2-astraGPT-6.2Current$0.3971$1.9860$0.0199$8.00 / $40.0095%
GPT-6.2 Solgpt-6.2-solGPT-6.2Current$0.0993$0.4964$0.0050$2.00 / $10.0095%
GPT-6 Astragpt-6-astraGPT-6Newer version out$0.4964$2.4810$0.0496$10.00 / $50.0095%
GPT-6.1 Solgpt-6.1-solGPT-6Newer version out$0.0993$0.4964$0.0050$2.00 / $10.0095%
GPT-6.1 Terragpt-6.1-terraGPT-6Current$0.0496$0.2482$0.0025$1.00 / $5.0095%
GPT-6 Lunagpt-6-lunaGPT-6Current$0.0135$0.0675$0.0014$0.10 / $0.5086%
GPT-6 Solgpt-6-solGPT-6Newer version out$0.0993$0.4964$0.0099$2.00 / $10.0095%
GPT-5.6 Solgpt-5.6-solGPT-5.6Previous gen$0.2482$1.4890$0.0248$4.00 / $20.0094%promo price
GPT-5.6 Terragpt-5.6-terraGPT-5.6Newer version out$0.0993$0.5957$0.0099$2.00 / $12.0095%
GPT-5.6 Lunagpt-5.6-lunaGPT-5.6Previous gen$0.0270$0.1620$0.0027$0.20 / $1.2086%
GPT-5.5gpt-5.5GPT-5.5Previous gen$0.2482$1.4890$0.0248$5.00 / $30.0095%
GPT-5.5 Progpt-5.5-proGPT-5.5Previous gen$17.8200$106.9200-no cached discount$30.00 / $180.0041%

Prices in USD per 1M tokens. When a request has more than 272K input tokens, the whole request is billed at OpenAI's long-context rates (2x input, 1.5x output). GPT-5.6 Sol's list price is OpenAI's promotional price (available at least through 2026-11-21, per OpenAI). GPT-5.5 Pro is Responses API only and has no cached input discount. List prices are from OpenAI; see the AnyAIGC model catalog for real-time prices.

Native OpenAI endpoints, fully supported

Requests match the official OpenAI API, so the official SDK and your existing code move over by changing base_url.

  • Chat Completions

    Chat endpoint

    Call /v1/chat/completions with the standard messages format. Existing code and frameworks work as is (except GPT-5.5 Pro).

  • Responses API

    Responses and tool calling

    Call /v1/responses for function calling. Codex uses this endpoint too.

  • Structured Outputs

    Structured outputs

    Constrain the response with a JSON Schema, so you can parse and store results without regex fallbacks.

  • reasoning_effort

    Reasoning effort

    Use reasoning_effort on Chat Completions and reasoning.effort on Responses. GPT-6 goes up to max; GPT-6 Sol and GPT-6 Luna also support none, while GPT-6.1 Sol and GPT-6 Astra do not.

  • Image input

    Image input

    Every model takes text and image input and returns text, so you can send screenshots, charts and scans.

  • Streaming

    Streaming

    Set stream: true to get tokens as they are generated. GPT-5.5 Pro does not support streaming.

Use /v1/responses for tool calling on GPT-6. Per OpenAI, gpt-6.1-sol does not support tool calling on Chat Completions, gpt-6.2-sol and gpt-6.2-astra have no stated restriction there and we recommend /v1/responses for them too, gpt-6-sol and gpt-6-luna support function calling there only with reasoning_effort set to none, and gpt-6-astra is not documented either way. Plain chat and streaming still work on /v1/chat/completions. gpt-5.5-pro works only on /v1/responses.

Start calling the GPT API in three steps

  1. Sign up and top up: create an account at anyaigc.ai. Your balance works across every model.
  2. Create an API key: create a token in the console, copy the sk- key and store it in the ANYAIGC_API_KEY environment variable.
  3. Send a request: set the OpenAI SDK base_url to https://anyaigc.ai/v1, put any model ID from this page in model, and authenticate with Authorization: Bearer.
Python · Chat Completions
import os
from openai import OpenAI

client = OpenAI(
    base_url="https://anyaigc.ai/v1",
    api_key=os.environ["ANYAIGC_API_KEY"],
)

resp = client.chat.completions.create(
    model="gpt-6.1-sol",  # gpt-6-astra / gpt-6-luna / gpt-5.6-terra ...
    reasoning_effort="medium",
    messages=[{"role": "user", "content": "Write an LRU cache with expiry in Python"}],
)
print(resp.choices[0].message.content)
Python · Responses API · function tool
import os
from openai import OpenAI

client = OpenAI(base_url="https://anyaigc.ai/v1", api_key=os.environ["ANYAIGC_API_KEY"])

tools = [{
    "type": "function",
    "name": "get_weather",
    "description": "Get the weather for a city",
    "parameters": {
        "type": "object",
        "properties": {"city": {"type": "string", "description": "City name"}},
        "required": ["city"],
    },
}]

resp = client.responses.create(
    model="gpt-6.1-sol",
    input="What's the weather in Beijing today?",
    tools=tools,
    reasoning={"effort": "medium"},
)

for item in resp.output:
    if item.type == "function_call":
        print(item.name, item.arguments)  # e.g. get_weather {"city": "Beijing"}
print(resp.output_text)

See the Chat Completions reference and Responses reference for every parameter. Fields match the official OpenAI API.

Use GPT models in Codex

One command installs the Codex CLI and writes the AnyAIGC config. Or edit the two files under ~/.codex/ yourself.

One-line install (macOS / Linux)
curl -fsSL https://www.anyaigc.ai/install.sh | bash -s codex
# Windows PowerShell: irm https://www.anyaigc.ai/install.ps1 | iex
~/.codex/config.toml
model_provider = "anyaigc"
model = "gpt-6.1-sol"
model_reasoning_effort = "medium"
disable_response_storage = true

[model_providers.anyaigc]
name = "anyaigc"
base_url = "https://anyaigc.ai/v1"
wire_api = "responses"
requires_openai_auth = true
~/.codex/auth.json
{
  "OPENAI_API_KEY": "sk-your-api-key"
}

The one-line installer sets the model to gpt-5.5, so change model in ~/.codex/config.toml to gpt-6.2-sol afterwards (or gpt-6.2-astra for the hardest tasks). Save both files and run codex in your project folder. Codex uses the Responses API, so tool calling works normally. See the Codex setup guide for full steps and common errors.

GPT 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.

GPT API FAQ

How much does the GPT API cost?

Every GPT model on AnyAIGC is billed per token in USD per 1M tokens, with no subscription or monthly fee. The current tiers: GPT-6.2 Astra $0.3971 input and $1.9860 output; GPT-6.2 Sol $0.0993 input and $0.4964 output; GPT-6.1 Terra $0.0496 input and $0.2482 output; GPT-6 Luna $0.0135 input and $0.0675 output. Most models are about 5% of OpenAI list price (95% off), GPT-6 Luna and GPT-5.6 Luna about 13.5%, and GPT-5.5 Pro about 59%. See the price table for all 12 models, and the AnyAIGC model catalog for real-time prices.

How do I get a GPT API key?

Sign up at anyaigc.ai, top up, and create a token in the console to get an sk- key. The same key works for all 12 GPT models on this page and 300+ other models, with one shared balance.

Does it work with the official OpenAI SDK?

Yes. Set base_url to https://anyaigc.ai/v1 and api_key to your AnyAIGC key, and existing code runs with little or no change. Both /v1/chat/completions and /v1/responses are supported, authentication uses Authorization: Bearer, and fields match the official OpenAI API.

GPT Astra vs Sol vs Terra vs Luna: which should I use?

They are OpenAI's four current capability tiers. Per OpenAI, Astra has the highest intelligence; the current version is GPT-6.2 Astra, for the hardest projects, with list prices 20% below GPT-6 Astra. Sol balances speed, cost and intelligence; the current version is GPT-6.2 Sol, which OpenAI says is smarter and more efficient than GPT-6.1 Sol at the same list price ($2 / $10). Terra sits between Sol and Luna; the current version is GPT-6.1 Terra, built for visual reasoning, computer use and writing, fast and at half of Sol's list price. Luna is the fastest and most cost-effective, for scoped, frequent tasks. Start with GPT-6.2 Sol for most coding and agent work, move to GPT-6.2 Astra for the hardest tasks, and use GPT-6 Luna for high-volume simple work.

How does GPT-5.6 Terra relate to GPT-6.1 Terra?

Terra is the balanced tier of GPT-5.6. OpenAI calls it a balanced model for everyday work with GPT-5.5-level performance at lower cost. On October 26, 2026, OpenAI released GPT-6.1 Terra as its successor, cutting list price from $2 / $12 to $1 / $5. GPT-5.6 Terra is still callable. On AnyAIGC, gpt-5.6-terra is $0.0993 input and $0.5957 output, and gpt-6.1-terra is $0.0496 input and $0.2482 output, per 1M tokens.

GPT-6.1 Sol vs GPT-6 Sol: what changed?

OpenAI describes GPT-6.1 Sol as the upgrade to GPT-6 Sol. Input and output list prices stay at $2 and $10, cached input drops from $0.20 to $0.10, and according to OpenAI it scores higher than GPT-6 Sol on benchmarks such as DeepSWE v1.1 and OSWorld 2.0. GPT-6.1 Sol does not support the none reasoning effort and does not support tool calling on Chat Completions. On AnyAIGC both are $0.0993 input and $0.4964 output, with cached input at $0.0050 and $0.0099. Use GPT-6.1 Sol for new projects; existing integrations can stay on gpt-6-sol.

Can I still use older GPT models?

GPT-6 Sol, GPT-5.6 Sol, GPT-5.6 Terra, GPT-5.6 Luna, GPT-5.5 and GPT-5.5 Pro all have newer replacements, but OpenAI has not announced API shutdown dates for them, and they all work on AnyAIGC today. For new projects, use GPT-6.1 Sol, GPT-6.1 Terra, GPT-6 Astra or GPT-6 Luna.

Can I use GPT models in Codex?

Yes. Run curl -fsSL https://www.anyaigc.ai/install.sh | bash -s codex to install and configure it (on Windows, irm https://www.anyaigc.ai/install.ps1 | iex). The installer defaults to gpt-5.5, so change model in ~/.codex/config.toml to gpt-6.1-sol or gpt-6-astra afterwards. Or edit ~/.codex/config.toml yourself: set base_url to https://anyaigc.ai/v1 and wire_api to responses, and put OPENAI_API_KEY in ~/.codex/auth.json.

Are there concurrency limits?

AnyAIGC sets no concurrency limit on any GPT model. Every account gets this by default, so batch jobs and parallel agents run without queuing.

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.

Is my data used for training?

No. Unless the law requires it, AnyAIGC does not persistently store your prompts or outputs or use them for training, and requests are encrypted in transit over HTTPS. See the AnyAIGC Privacy Policy for details. The model's own data policy is governed by OpenAI's official terms.

Start using the GPT API

Sign up, create an API key, and call every GPT model from your code or Codex within minutes.