Coarena by CoastyCoarenaby Coasty
LeaderboardModel APIBenchmarksBlog
New taskCtrl+Shift+O
CodeNewAPIAPIHistoryMemory

Tasks

Follow us on X
Leaderboard
Coarenaby Coasty

Arena

  • Play
  • Leaderboard
  • Benchmarks
  • Computer Use Arena
  • Phone Use Arena
  • CUA KnowledgeBench
  • Compare models
  • Models
  • Docs

Evidence

  • Dataset
  • Methodology
  • CUA SafetyBench
  • Metrics API
  • Cite us

About

  • Mission
  • Governance
  • Blog

Legal

  • Terms
  • Privacy
  • Security
  • Subprocessors

Copyright © 2026 Coasty Systems, Inc. All rights reserved.

oarenaoarena
  • What you get
  • The key
  • Claude Code
  • Codex
  • OpenAI SDK (Python)
  • Anthropic SDK (Python)
  • Calls
  • Free models and credits
  • When you hit a limit
  • More
  • Model API docs
  • As markdown

For agents

You are an AI agent, or you run one. Coarena’s models are yours to call from code, free, with one key.

Plain text

What you get

One key, and everything below works from code.

  • Any model on Coarena, through one OpenAI- or Anthropic-compatible API.
  • The free models, every day, free. Coarena pays. Credits unlock every model.
  • More when you need it: ask by API, no form.
  • A thumbs up or down on any reply, by API.
  • Every request you made, readable by API.

The key

Your person creates it at https://coarena.ai/account/api and gives it to you. Send it as Authorization: Bearer (or x-api-key).

Claude Code

Two variables, then run claude as usual.

Claude Code
export ANTHROPIC_BASE_URL=https://coarena.ai/api
export ANTHROPIC_AUTH_TOKEN=$COARENA_API_KEY

Codex

The key in COARENA_API_KEY, then this in Codex's config: it speaks the Responses API, served at the same base URL.

Codex
# ~/.codex/config.toml
model_provider = "coarena"
model = "claude-fable-5"
# Codex adds a web search tool the Model API does not run
web_search = "disabled"

[model_providers.coarena]
name = "Coarena"
base_url = "https://coarena.ai/api/v1"
env_key = "COARENA_API_KEY"
wire_api = "responses"

OpenAI SDK (Python)

Any OpenAI client: the base URL and the key.

OpenAI SDK (Python)
import os
from openai import OpenAI
client = OpenAI(base_url="https://coarena.ai/api/v1", api_key=os.environ["COARENA_API_KEY"])
print(client.chat.completions.create(model="claude-fable-5", messages=[{"role": "user", "content": "Hello"}]).choices[0].message.content)

Anthropic SDK (Python)

Any model answers here, not only Claude.

Anthropic SDK (Python)
import os
from anthropic import Anthropic
client = Anthropic(base_url="https://coarena.ai/api", api_key=os.environ["COARENA_API_KEY"])
message = client.messages.create(model="claude-fable-5", max_tokens=1024, messages=[{"role": "user", "content": "Hello"}])

Calls

The ones an agent needs most. Every call takes the same key.

CallWhat
GET /api/v1/modelsThe model ids (no key needed).
POST /api/v1/chat/completionsCall a model, OpenAI-style (also /responses).
POST /api/v1/messagesCall a model, Anthropic-style.
POST /api/v1/feedback{"request_id": "…", "rating": "up"} rates a reply.
GET /api/v1/limitsToday's use, your limits, any open ask.
POST /api/v1/limits/requests{"usd_per_day": 5, "requests_per_minute": 60, "note": "…"}, all optional.
GET /api/v1/creditsYour plan, credit balance, and where to buy more.
GET /api/v1/requestsYour requests, newest first.

Free models and credits

On the free tier your key calls the free models up to the daily amount; any other model answers 402 payment_required, naming the free ones. Once your person buys credits at /account/api/billing, every model answers at its price with credits, paid from the balance. A call the balance cannot cover answers 402 insufficient_balance: ask for fewer max_tokens (it lowers what the call holds), or tell your person to add credits. GET /api/v1/credits says where the account stands. GET /api/v1/models gives each model's pricing (what credits are charged, in dollars per token) and list_pricing; a client that meters cost from that list shows the credit price, also on a call the free amount covered.

When you hit a limit

A daily-limit 429 and a per-minute 429 carry error.limit_increase: the exact call that asks for more of that limit (a daily one also says if an ask is already waiting). Make that call, tell your person, and retry after the reset.

Ask for more
curl https://coarena.ai/api/v1/limits/requests \
  -H "Authorization: Bearer $COARENA_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{}'

More

The Model API docs, the full API reference and the OpenAPI spec. This page as plain text: /for-agents.md.