Skillry API
Call Skillry’s text, image, video and audio models with your credits from scripts, servers and your own apps. Every paid call runs inside a budget you approve.
Quick start
Send requests to https://skillry.dev/v1 with your Skillry API key as a Bearer token. Text uses the OpenAI Responses format, so most OpenAI SDKs work once you change the base URL and the key.
- 01
Create a key
In Settings → Connections → API keys, create a key with the AI models permission. Add a daily limit if you like. The key is shown once.
- 02
Check it for free
Call GET /v1/models. It lists the models your key can use and spends nothing.
- 03
Request a task budget
Send POST /api/relay/runs with a new UUID, a short name and a budget in credits. Budgets within the key’s automatic limit (16 credits by default) are approved at once; larger ones wait for you in the browser.
- 04
Make the call
Send the approved run ID as X-Skillry-Run-ID and a new UUID as Idempotency-Key. Credits are charged at the supplier’s actual cost, and unused budget is released.
# 1. Check the key (free)
curl -fsS https://skillry.dev/v1/models -H "Authorization: Bearer $SKILLRY_API_KEY"
# 2. Ask for a 1-credit task budget (approved at once within the automatic limit)
curl -fsS https://skillry.dev/api/relay/runs -H "Authorization: Bearer $SKILLRY_API_KEY" \
-H 'Content-Type: application/json' \
--data "{\"id\":\"$(uuidgen)\",\"name\":\"Summarize notes\",\"budget_points\":1}"
# 3. Call a model inside the approved run
curl -fsS https://skillry.dev/v1/responses -H "Authorization: Bearer $SKILLRY_API_KEY" \
-H "X-Skillry-Run-ID: $SKILLRY_RUN_ID" -H "Idempotency-Key: $(uuidgen)" \
-H 'Content-Type: application/json' \
--data '{"model":"gpt-6.1-terra","input":"Write a two-line summary.","max_output_tokens":256}'import os, uuid
from openai import OpenAI
client = OpenAI(base_url="https://skillry.dev/v1", api_key=os.environ["SKILLRY_API_KEY"])
response = client.responses.create(
model="gpt-6.1-terra",
input="Write a two-line summary.",
max_output_tokens=256,
extra_headers={
"X-Skillry-Run-ID": os.environ["SKILLRY_RUN_ID"],
"Idempotency-Key": str(uuid.uuid4()),
},
)
print(response.output_text)Signed in? Settings → Connections fills in your key and the media examples.
Endpoints
| Method | Path | What it does | Cost |
|---|---|---|---|
| GET | /v1/models | Models your key can use | Free |
| GET | /v1/pricing | Credit rates, marking the models that take new requests | Free |
| POST | /v1/pricing/estimate | Estimate one price component | Free |
| POST | /api/relay/runs | Request a task budget; read the decision with ?approval_id= | Free |
| POST | /v1/responses | Text in the OpenAI Responses format, as JSON or a stream | Text |
| GET | /v1/media/models | Image, video and audio models with their settings | Free |
| POST | /v1/media/quotes | Price exact media settings before you spend | Free |
| POST | /v1/media/jobs | Start a media job; GET it for status and the result | Media |
| GET | /v1/media/wallet | Balance, holds and recent charges | Free |
/v1/chat/completions and /v1/messages accept only models set up for those formats. Check each model’s protocol in GET /v1/models; today’s text models use Responses.
Budgets and approval
Paid calls run inside a task budget, so a script can’t spend more than you agreed to. Each key also has a daily limit and a cap per request.
- 01
Propose
Your script sends a name and a budget to /api/relay/runs.
- 02
Confirm
Confirm the quoted credits with the user in chat before creating the run. POST /api/relay/runs approves the budget immediately with no browser popup.
- 03
Run
Each paid call carries X-Skillry-Run-ID and stays inside the budget.
- 04
Settle
Credits are charged at the supplier’s actual cost. Unused budget is released.
To change a key’s daily spending limit, open the key’s menu and choose Spending limits.
Models and rates
Rates are in Skillry credits (1 credit = $0.015) and come from the same catalog as GET /v1/pricing. Use them to plan: each call is charged at the supplier’s actual cost, which can differ for very small or very large requests.
Need credits? Pro includes monthly credits, and you can add more or buy permanent packs.See pricing
Errors
Errors return JSON with a code and a message. A failed call doesn’t spend credits.
| Status | Code | What to do |
|---|---|---|
| 400 | invalid_request · unpriced_specification | Fix the request. Media settings must match a priced option from GET /v1/media/models. |
| 400 | unsupported_protocol | The model uses another format. Send the request to the endpoint named in the message, usually /v1/responses. |
| 401 | unauthorized | The key is missing, expired or revoked. Create or regenerate one in Settings → Connections. |
| 402 | insufficient_credits | Not enough credits. Add credits, then retry with the same Idempotency-Key. |
| 403 | permission_denied | The key lacks the AI models permission for this call. |
| 404 | run_not_found | The run ID is unknown or belongs to another key. Request a new budget. |
| 409 | run_required · skill_budget_exceeded | Attach an active run ID from POST /api/relay/runs, or confirm and raise the budget on the same run. |
| 429 | spending_limit · text_queue_full · media_queue_full | Today’s spending limit is reached, or too many calls are running. Wait for the limit to reset or for running calls to finish; paid calls are never retried for you. |
| 503 | model_unavailable · channel_unavailable | The model or its route is off right now. Pick another model from GET /v1/models or try later. |
Limits and data
- Text requests take text input only; files, images and hosted tools aren’t supported yet.
- Streaming (SSE) works on /v1/responses.
- Retries are safe with the same Idempotency-Key: a finished call replays without a second charge.
- Responses and media results stay private and downloadable for 30 days. Request logs are kept for 90 days.
- For support, keep X-Request-ID, X-Relay-Call-ID and your Idempotency-Key.
- Keep keys on servers. Never ship a key in a browser app, a Skill package or a public repo.