Contents
To use SolCard Inference from an OpenAI client, change three values: the base URL, the API key and the model ID. Nothing else in your code moves.
| Value | Set it to |
|---|---|
| Base URL | https://api.solcardinference.ai/v1 |
| API key | A key that starts with sk-si- |
| Model | solcard-inference-fast, or another ID from the table below |
The API answers OpenAI Chat Completions, OpenAI Responses and Anthropic Messages on the same key. It keeps nothing you send: prompts and replies are not logged or stored.
Get a key
- Create an account with an email address or a Solana wallet.
- Open API keys and create a key. It is shown once, so copy it then.
- Put it in an environment variable:
export SOLCARD_INFERENCE_KEY=sk-si-...
Requests are paid from a prepaid balance. A new email sign-up may get $1 of free credit; otherwise top up first, or the API answers 402 insufficient_balance.
Send a request
With curl:
curl https://api.solcardinference.ai/v1/chat/completions \
-H "Authorization: Bearer $SOLCARD_INFERENCE_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "solcard-inference-fast",
"messages": [{"role": "user", "content": "Say hello in five words."}]
}'
With the OpenAI Python SDK:
import os
from openai import OpenAI
client = OpenAI(
api_key=os.environ["SOLCARD_INFERENCE_KEY"],
base_url="https://api.solcardinference.ai/v1",
)
reply = client.chat.completions.create(
model="solcard-inference-fast",
messages=[{"role": "user", "content": "Say hello in five words."}],
)
print(reply.choices[0].message.content)
With the OpenAI JavaScript SDK:
import OpenAI from "openai";
const client = new OpenAI({
apiKey: process.env.SOLCARD_INFERENCE_KEY,
baseURL: "https://api.solcardinference.ai/v1",
});
const reply = await client.chat.completions.create({
model: "solcard-inference-fast",
messages: [{ role: "user", content: "Say hello in five words." }],
});
console.log(reply.choices[0].message.content);
All three ran against the live API on November 17, 2026 and returned a reply with a usage block.
What the API answers
| Endpoint | Path |
|---|---|
| Chat Completions | POST /v1/chat/completions |
| Responses | POST /v1/responses |
| Anthropic Messages | POST /v1/messages |
| List models | GET /v1/models |
The key goes in either header. Authorization: Bearer sk-si-... and x-api-key: sk-si-... both work on every endpoint.
The Anthropic SDK takes the URL without /v1: https://api.solcardinference.ai. The SDK adds /v1/messages itself.
What works the way an OpenAI client expects:
- Streaming. Send
"stream": true. Add"stream_options": {"include_usage": true}and the last chunk before[DONE]carries the token counts. - Function tools. A request with a
toolsarray comes back withfinish_reason: "tool_calls"and the call’s arguments as JSON. - JSON output.
"response_format": {"type": "json_object"}returns a JSON string. - Reasoning effort, on the models that reason. See the reasoning guide.
What it doesn’t do
- No embeddings.
POST /v1/embeddingsreturns 404. Keep your embedding model where it is. - Text only. No image, audio or file input.
- Our model IDs only. A request for
gpt-4oreturns400 model_not_found. Change the model name along with the base URL. - Output is capped at 32,768 tokens per request, per the models page.
Models and prices
USD per 1M tokens, as GET /v1/models listed them on November 17, 2026.
| Model ID | What it is | Input | Cached input | Output |
|---|---|---|---|---|
solcard-inference-fast | Fastest of our own lineup | $1.25 | $0.125 | $2.50 |
solcard-inference-large | Most capable, always reasons | $3.75 | $0.375 | $6.25 |
solcard-inference-base | Everyday tasks | $1.25 | $0.125 | $3.75 |
solcard-inference-fast-standard | DeepSeek V4.1 Flash | $0.345 | $0.0575 | $1.38 |
solcard-inference-large-standard | GLM-5.3 | $1.61 | $0.299 | $5.06 |
solcard-inference-pro-standard | Kimi K3.1 Pro | $2.30 | $0.23 | $11.50 |
solcard-inference-lite-standard | GLM-5.3 Flash | $0.1725 | $0.0736 | $0.575 |
solcard-inference-hy4-standard | Tencent Hy4 | $0.966 | $0.0483 | $2.8865 |
The first three are open models with their refusal training removed. The five Standard models are the originals as their makers release them, with the makers’ own safety rules, at lower prices. Fast, Large or Base covers our own three.
Cached input is the part of a prompt the model reads from its prompt cache. The reply’s usage reports it as cached_tokens. Reasoning tokens count as output. Web search, where you turn it on, is $0.008 per search.
A worked example on Fast: a request with 2,000 input tokens and 500 output tokens costs 2,000 × $1.25 / 1M + 500 × $2.50 / 1M = $0.00375.
You can check the live list yourself:
curl https://api.solcardinference.ai/v1/models \
-H "Authorization: Bearer $SOLCARD_INFERENCE_KEY"
Each model has a pricing object in micro-USD per 1M tokens: 1250000 is $1.25.
Errors you may see
| Status | Code | Meaning |
|---|---|---|
| 401 | invalid_api_key | The key is wrong, incomplete or revoked |
| 400 | model_not_found | The model ID isn’t one of ours |
| 402 | insufficient_balance | The balance can’t cover even a short reply |
| 429 | Too many requests: pay as you go allows 60 a minute |
The errors page lists the rest, and how billing works explains the hold placed before each request.
Using it from a tool
Most tools that accept an OpenAI base URL work with the same three values. We have setup guides for Cline, OpenCode, LiteLLM, LangChain and the Vercel AI SDK. For Claude Code, see Claude Code with other models.
FAQ
What is the OpenAI-compatible base URL?
https://api.solcardinference.ai/v1. For the Anthropic SDK, use https://api.solcardinference.ai with no /v1.
Do I need to change my code? Only the base URL, the key and the model ID. Request and response shapes are the OpenAI ones.
Is there a free tier? No free tier. A new email sign-up may get $1 of credit that lasts 30 days. After that you top up any amount and pay per request, and the balance doesn’t expire.
How do I pay? On the dashboard’s Top up page: send crypto to your deposit address, or pay from a SolCard card balance. There’s no card on file. Pay with USDC walks through it.
Are my prompts stored? No. Prompts and replies are not logged or stored on any model. Keeps nothing follows one message through the system.