Quickstart
Create a key, add credits, send a request.
-
Create an API key. Sign in at app.solcardinference.ai, open API keys and create one. Keys start with
sk-si-and are shown once. -
Add credits. Requests draw from a prepaid USD balance. Send USDC on Solana to your deposit address on the Top up page, or subscribe to a plan.
-
Send a request.
curl https://api.solcardinference.ai/v1/chat/completions \-H "Authorization: Bearer $SOLCARD_INFERENCE_KEY" \-H "Content-Type: application/json" \-d '{"model": "flash","messages": [{ "role": "user", "content": "Say hello in five words." }]}'from openai import OpenAIclient = OpenAI(base_url="https://api.solcardinference.ai/v1", api_key="sk-si-...")reply = client.chat.completions.create(model="flash",messages=[{"role": "user", "content": "Say hello in five words."}],)print(reply.choices[0].message.content)import OpenAI from "openai";const client = new OpenAI({ baseURL: "https://api.solcardinference.ai/v1", apiKey: process.env.SOLCARD_INFERENCE_KEY });const reply = await client.chat.completions.create({model: "flash",messages: [{ role: "user", content: "Say hello in five words." }],});console.log(reply.choices[0].message.content);from anthropic import Anthropicclient = Anthropic(base_url="https://api.solcardinference.ai", api_key="sk-si-...")reply = client.messages.create(model="flash",max_tokens=1024,messages=[{"role": "user", "content": "Say hello in five words."}],)print(reply.content[0].text)
Next: stream tokens, call tools or search the web.