API Stock

Solutions

AI agents for business

Connect 29 chat models through one balance using the documented OpenAI or Anthropic format.

What an agent needs from its infrastructure

Choose a model for each step of your agent and track requests and spending.

A different model per step

Use a cheaper model for classification and a stronger one for reasoning. Select it with the model field.

OpenAI and Anthropic protocols

Use the documented Chat Completions or Messages format with your existing compatible client.

One balance for the company

Pay for model usage from one balance and track spending by key and model.

Access without the paperwork

Check the price and try a model in the browser before integrating. A trial balance may not cover every model.

Media models on the same key

Generate images, video or music with the same key and balance.

The models agents are built on

Current prices per million input tokens, lowest first.

ModelVendorPrice
GPT 6 LunaOpenAI$0.12/ 1M tokens
DeepSeek V4 FlashDeepSeek$0.168/ 1M tokens
GPT 5.6 LunaOpenAI$0.18/ 1M tokens
Claude Sonnet 5Anthropic$0.3/ 1M tokens
Qwen3.7 PlusQwen$0.343/ 1M tokens
MiniMax M3MiniMax$0.36/ 1M tokens
DeepSeek V4 ProDeepSeek$0.522/ 1M tokens
Claude Sonnet 5.5Anthropic$0.9/ 1M tokens
Gemini 3.5 FlashGoogle$0.9/ 1M tokens
Gemini 3.6 FlashGoogle$0.9/ 1M tokens
Gemini 3.7 FlashGoogle$0.9/ 1M tokens
Gemini 3.8 FlashGoogle$0.9/ 1M tokens
Kimi K2.7 CodeMoonshot$1.11/ 1M tokens
GPT 5.6 TerraOpenAI$1.2/ 1M tokens
GPT 6.1 TerraOpenAI$1.2/ 1M tokens
GLM 5.2Zhipu$1.37/ 1M tokens
Claude Fable 5Anthropic$1.5/ 1M tokens
GPT 5.5OpenAI$1.5/ 1M tokens
GLM 5.3Zhipu$1.68/ 1M tokens
GPT 6.1 SolOpenAI$1.8/ 1M tokens
Grok 4.5xAI$2.1/ 1M tokens
Grok 4.6xAI$2.1/ 1M tokens
GPT 6 SolOpenAI$2.4/ 1M tokens
Claude Opus 5Anthropic$3/ 1M tokens
GPT 5.6 SolOpenAI$3/ 1M tokens
Kimi K3Moonshot$3.15/ 1M tokens
Claude Opus 5.5Anthropic$4.8/ 1M tokens
GPT 6 AstraOpenAI$8/ 1M tokens
Claude Fable 5.1Anthropic$10/ 1M tokens

What gets built on this

Examples of agent workflows you can build with these models.

First-line support

The agent reads the ticket, looks the answer up in your knowledge base and replies, handing the contested cases to a human. Classification on a cheap model, the customer-facing reply on a strong one.

Document processing

Contracts, invoices and applications: the agent extracts the fields, checks them against your system of record and returns structured JSON. Long-context models read the document whole.

Content and marketing

Text, images and video in one pipeline: the agent drafts the script on a chat model and produces the cover or the clip on a media model — same key, same balance.

Analytics and reporting

The agent turns a question into a query against your data, interprets the result and writes the report in plain language. Long chains of reasoning are cheaper on the smaller models.

How to connect an agent

Set the base URL and key in your compatible OpenAI or Anthropic client.

  1. 1

    Get a key

    Create an account, fund your balance and create an API key.

  2. 2

    Point the base URL at us

    Set our base URL and your key in a compatible client.

  3. 3

    Route models per step

    Name the model each step needs in the `model` field. Spend per model and per key shows up in the dashboard statistics.

OpenAI SDK

import os
from openai import OpenAI

client = OpenAI(
    api_key=os.environ["API_KEY"],
    base_url="https://api.api-stock.com/api/v1",
)

response = client.chat.completions.create(
    model="gpt-6-luna",
    messages=[{"role": "user", "content": "..."}],
    tools=tools,
)

curl

curl https://api.api-stock.com/api/v1/chat/completions \
  -H "Authorization: Bearer $API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "gpt-6-luna",
    "messages": [{"role": "user", "content": "..."}]
  }'

Frequently asked questions

What does it take to integrate an AI agent into a business?

Three things: a model for the agent to think on, access to your data and tools, and infrastructure that does not fall over under load. API Stock covers the first and the third — 29 chat models behind one key, the OpenAI and Anthropic protocols, automatic failover to a reserve provider. The agent's logic and the access to your systems stay on your side.

How do you integrate an AI agent into enterprise processes?

Technically, by changing the base URL and the key in the OpenAI or Anthropic client: an agent built on LangChain, LlamaIndex, the Vercel AI SDK or the raw SDK starts running through us with no change to its logic. Organisationally, by starting with one process that has a measurable outcome — first-line support, inbound document processing — and expanding once that one shows a result.

Which models suit an AI agent?

Small fast models for routing, classification and field extraction; the larger ones for planning, reasoning and code. The catalog holds 29 chat models and switching between them is a single field in the request, so choosing the model for a step is an experiment rather than a migration.

Is there a contract or a minimum payment?

Available payment methods, currencies and minimum top-up amounts are shown in your account before payment. There is no subscription: model usage is charged to your prepaid balance.

What does an AI agent for business cost?

On the infrastructure side the cost is tokens: you pay for the volume of requests and responses at the price of the model you used, with no subscription. The gap between the smallest and the largest model is tens of times, which is why routing and classification are where the money is saved.

Choose your first model

Check the price and try it in the browser.