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.

https://skillry.dev/v1Bearer API keyOpenAI Responses/v1/media

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.

  1. 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.

  2. 02

    Check it for free

    Call GET /v1/models. It lists the models your key can use and spends nothing.

  3. 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.

  4. 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.

cURL
# 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}'
Python · OpenAI SDK
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

MethodPathWhat it doesCost
GET/v1/modelsModels your key can useFree
GET/v1/pricingCredit rates, marking the models that take new requestsFree
POST/v1/pricing/estimateEstimate one price componentFree
POST/api/relay/runsRequest a task budget; read the decision with ?approval_id=Free
POST/v1/responsesText in the OpenAI Responses format, as JSON or a streamText
GET/v1/media/modelsImage, video and audio models with their settingsFree
POST/v1/media/quotesPrice exact media settings before you spendFree
POST/v1/media/jobsStart a media job; GET it for status and the resultMedia
GET/v1/media/walletBalance, holds and recent chargesFree

/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.

  1. 01

    Propose

    Your script sends a name and a budget to /api/relay/runs.

  2. 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.

  3. 03

    Run

    Each paid call carries X-Skillry-Run-ID and stays inside the budget.

  4. 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.

Loading rates…

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.

StatusCodeWhat to do
400invalid_request · unpriced_specificationFix the request. Media settings must match a priced option from GET /v1/media/models.
400unsupported_protocolThe model uses another format. Send the request to the endpoint named in the message, usually /v1/responses.
401unauthorizedThe key is missing, expired or revoked. Create or regenerate one in Settings → Connections.
402insufficient_creditsNot enough credits. Add credits, then retry with the same Idempotency-Key.
403permission_deniedThe key lacks the AI models permission for this call.
404run_not_foundThe run ID is unknown or belongs to another key. Request a new budget.
409run_required · skill_budget_exceededAttach an active run ID from POST /api/relay/runs, or confirm and raise the budget on the same run.
429spending_limit · text_queue_full · media_queue_fullToday’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.
503model_unavailable · channel_unavailableThe 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.

Further reading