1. Quick Start
Go from account activation to your first model response in three steps. Your unified Iris API key works across supported OpenAI, Anthropic Claude, Google Gemini, and xAI Grok models.
Sign in at EASTAR Iris (or register with one-step email verification). Purchase one-time prepaid credits (US$10 / $50 / $200) in Account & Top-up, or use your own provider keys free via IrisKEY.
Open Iris Console → API Keys → create a key (format sk-...). You can assign an optional per-key USD spending cap (for example, US$100 per key) to isolate projects or team tools.
Point your client to the Iris endpoint below with Authorization: Bearer sk-your-key (or x-api-key for Anthropic clients) and send your first completion.
| Protocol / Client Type | Base URL | Auth Header | Primary Path |
|---|---|---|---|
| OpenAI SDK / Qoder (OpenAI) / WorkBuddy / Cursor | https://iriskeys.com/v1 | Authorization: Bearer sk-... | /v1/chat/completions · /v1/responses |
| Anthropic SDK / Qoder (Anthropic) / Claude Code | https://iriskeys.com | x-api-key: sk-... or Bearer | /v1/messages |
| Gemini Native SDK / Image & Video | https://iriskeys.com | Authorization: Bearer sk-... | /v1beta/models/{model}:generateContent |
/v1 suffix, while Anthropic / Claude Code and Gemini native clients append their own version path automatically and must omit /v1.curl -X POST https://iriskeys.com/v1/chat/completions \
-H "Authorization: Bearer sk-your-iris-key" \
-H "Content-Type: application/json" \
-d '{
"model": "gpt-5.4",
"stream": true,
"messages": [
{"role": "user", "content": "Hello from Iris"}
]
}'2. Protocols & Endpoints
Use the exact model ID shown in your Iris Console. Streaming ("stream": true) is supported natively across all text protocols.
OpenAI Chat Completions & Responses API
Compatible with standard OpenAI SDKs (Python, Node.js, Go, curl). For reasoning models that support adjustable reasoning effort (low / medium / high), use /v1/responses.
curl -X POST https://iriskeys.com/v1/responses \
-H "Authorization: Bearer sk-your-iris-key" \
-H "Content-Type: application/json" \
-d '{
"model": "gpt-6.1-sol",
"reasoning": {"effort": "medium"},
"input": [{"role": "user", "content": "Explain prompt caching briefly."}]
}'from openai import OpenAI
import os
client = OpenAI(
base_url="https://iriskeys.com/v1",
api_key=os.environ["IRIS_API_KEY"],
)
resp = client.chat.completions.create(
model="gpt-5.4",
messages=[{"role": "user", "content": "Hello from Python SDK"}],
)
print(resp.choices[0].message.content)Claude Native Messages API
Native Anthropic /v1/messages passthrough with prompt caching token accounting (cache_creation_input_tokens / cache_read_input_tokens).
curl -X POST https://iriskeys.com/v1/messages \
-H "x-api-key: sk-your-iris-key" \
-H "anthropic-version: 2023-06-01" \
-H "Content-Type: application/json" \
-d '{
"model": "claude-sonnet-4-6",
"max_tokens": 1024,
"messages": [{"role": "user", "content": "Hello Claude via Iris"}]
}'Gemini (OpenAI-Compatible & Native /v1beta)
All Gemini text models work over /v1/chat/completions; for multimodal image/video generation or Gemini-specific features, use the native /v1beta endpoint.
# OpenAI-compatible text call
curl -X POST https://iriskeys.com/v1/chat/completions \
-H "Authorization: Bearer sk-your-iris-key" \
-H "Content-Type: application/json" \
-d '{"model":"gemini-3.5-flash","messages":[{"role":"user","content":"Hello Gemini"}]}'
# Native /v1beta call (recommended for multimodal image / video)
curl -X POST https://iriskeys.com/v1beta/models/gemini-3.5-flash:generateContent \
-H "Authorization: Bearer sk-your-iris-key" \
-H "Content-Type: application/json" \
-d '{"contents":[{"role":"user","parts":[{"text":"Hello Gemini"}]}]}'3. Mainstream Client Setup
Paste your Iris API key into Qoder, WorkBuddy, Claude Code, Codex CLI, Cursor, or any compatible coding assistant and desktop chat app.
Qoder (Desktop / IDE / CLI)
- Open Settings → Models: Click your user menu → Settings (macOS
⌘+,· WindowsCtrl+,) → select Models in the left sidebar → click Add model. - Choose Custom Provider: Under Provider → Custom, pick either:
• OpenAI Compatible (GPT, Gemini, Grok — supports Chat Completions API or Responses API): set Base URL tohttps://iriskeys.com/v1, paste yoursk-...API key, and enter Model IDs (e.g.gpt-5.4,gemini-3.5-flash,grok-4.5; click Add Model ID to batch-add).
• Anthropic Compatible (recommended for Claude): set Base URL tohttps://iriskeys.com(without/v1), paste yoursk-...API key, and enter Claude Model IDs (e.g.claude-sonnet-4-6,claude-opus-4-6). - Capabilities & Validation: Match context window, Vision, and Thinking to the model, click Validate and add model, then pick it in the chat model selector. Qoder CLI also supports the same endpoint via its BYOK wizard. Usage bills directly against your Iris credit balance rather than Qoder Credits.
WorkBuddy
- Open Model Settings: Click your avatar at the bottom-left → Settings → Models (or open the model selector at the bottom of the chat bar → Configure custom model), then click Add model.
- Select Custom (OpenAI-Compatible): Choose Custom provider and keep Custom Protocol turned Off (default standard OpenAI mode automatically appends
/chat/completions). - Fill Iris Credentials: Set API Base URL to
https://iriskeys.com/v1, paste yoursk-...API key (stored locally inworkbuddy/models.json, never uploaded to WorkBuddy cloud), and enter exact Iris Model IDs (e.g.gpt-5.4,claude-sonnet-4-6,gemini-3.5-flash,grok-4.5). - Start Using: Save and select the added model under the Custom Models group in the chat model picker. All token charges deduct from your Iris prepaid balance rather than WorkBuddy credits.
Claude Code (macOS / Linux / Windows)
Set ANTHROPIC_BASE_URL (without /v1) and ANTHROPIC_AUTH_TOKEN (or ANTHROPIC_API_KEY) in your shell environment:
# macOS / Linux
export ANTHROPIC_BASE_URL="https://iriskeys.com"
export ANTHROPIC_AUTH_TOKEN="sk-your-iris-key"
claude
# Windows (PowerShell)
$env:ANTHROPIC_BASE_URL="https://iriskeys.com"
$env:ANTHROPIC_AUTH_TOKEN="sk-your-iris-key"
claudeCodex CLI
Configure a custom OpenAI-compatible provider in ~/.codex/config.toml and export IRIS_API_KEY:
# ~/.codex/config.toml
model_provider = "iris"
model = "gpt-5.4"
[model_providers.iris]
name = "Iris"
base_url = "https://iriskeys.com/v1"
env_key = "IRIS_API_KEY"
wire_api = "responses"
# Then in your shell:
# export IRIS_API_KEY="sk-your-iris-key"Cursor / Cherry Studio / LobeChat / OpenClaw
- Cursor: Settings → Models → Override OpenAI Base URL → enter
https://iriskeys.com/v1and paste yoursk-...key. - Cherry Studio / LobeChat: Add an OpenAI-compatible provider, set API Host to
https://iriskeys.com/v1, paste your key, and add the exact model IDs you need. - OpenAI Python / Node SDK: Pass
base_url="https://iriskeys.com/v1"andapi_key=os.environ["IRIS_API_KEY"].
4. Balance, Quotas & Compliance
Account Balance vs. Key Quota
Your Iris account holds your prepaid USD credit balance (1 credit = US$1). Each API key can optionally carry its own spending cap (e.g., US$100 per key) so a single script or workspace can never drain your whole account.
Hosted Credits vs. IrisKEY (BYOK)
Prepaid hosted credits pay per-token usage across Iris-managed upstreams with zero recurring subscriptions. IrisKEY lets you connect your own third-party API keys at zero Iris platform fee.
Usage Scope & Refunds
Iris accounts are licensed for personal development, learning, and internal self-use workflows; account sharing and unauthorized commercial resale are prohibited. Unused purchased credit balances are eligible for a 14-day full refund per our Payment & Refund Policy and Terms of Service.
Key Security Hygiene
Never commit sk-... keys to Git repositories or client-side browser code. Store keys in environment variables or chmod 600 secret files, and rotate or revoke immediately from the console if exposed.
5. Frequently Asked Questions (FAQ)
Should my Base URL include /v1?
It depends on the client protocol: OpenAI SDKs, Qoder (OpenAI Compatible), WorkBuddy, Cursor, Cherry Studio, LobeChat, and Codex CLI use https://iriskeys.com/v1. Anthropic SDK, Qoder (Anthropic Compatible), Claude Code (ANTHROPIC_BASE_URL), and Gemini native /v1beta clients use https://iriskeys.com without /v1.
Why am I getting HTTP 401 Unauthorized or 403 Forbidden?
401 means the API key is missing, mistyped, revoked, or sent in the wrong header. Check that your header is Authorization: Bearer sk-... (or x-api-key: sk-... for Claude). 403 usually means your account balance or that specific key’s quota cap has been reached, or the key is restricted by IP/group policy.
Can one API Key call GPT, Claude, Gemini, and Grok models together?
Yes. Keys created under the default unified group automatically route each request to the matching upstream based on the model parameter (gpt-*, claude-*, gemini-*, grok-*) while keeping unified balance accounting and usage logs.
What happens when a single key hits its $100 quota limit?
Requests using that key stop cleanly with a quota error once its cumulative spend reaches the cap, while your remaining account balance and other keys continue working unaffected. You can raise or reset the key quota anytime in Iris Console → API Keys.
Why did I get HTTP 429 Too Many Requests or a streaming timeout?
429 indicates per-key concurrency/rate limits or temporary upstream congestion — retry with exponential backoff (e.g., 2s → 5s → 10s). For long reasoning or large-context requests, set your client read timeout to at least 120–300 seconds and enable "stream": true.
How fast do top-ups arrive, and are there automatic renewals?
Prepaid credits are one-time purchases with no recurring subscriptions or auto-renewals. Credits arrive automatically upon payment confirmation (Card, UnionPay, Apple Pay, Google Pay, Alipay, AlipayHK, WeChat Pay, PayPal). Unused purchased balances can be refunded within 14 days via [email protected].
Are hosted AI model credits shared with WhatsApp daily alert fees?
No. Hosted AI model credits (used for API inference) and optional WhatsApp daily notification channel balances are maintained in strictly separated ledgers. See Payment & Refund Policy for details.
Where can I check my discounted spend vs. list price, or query key billing via API?
Open Iris Account to compare official list price, your discounted Iris spend, and total savings over the last 30 days. Programmatically, send GET https://iriskeys.com/v1/iris/billing with Authorization: Bearer sk-... to inspect your key multiplier and scope.
How do I get a commercial Invoice or a China Mainland Fapiao?
A printable commercial Invoice from EASTAR ASSET MANAGEMENT LIMITED is generated automatically for every paid order (also emailed to you and downloadable from Iris Account → Orders). If you need a China Mainland tax invoice (VAT General or Special), check I need a China Mainland Fapiao before checkout or click + CN Fapiao next to any paid order.
How do I get technical support or report a billing issue?
Email [email protected] or visit Contact Us with your account email, timestamp, model ID, and HTTP status code (never include your full API key).