One API for language inference, image and video generation, deployment templates, and live GPU compute. Use it directly from your application or optionally give the same documentation to an AI agent.
New here?Everything below works with one base URL and one bearer token. If you want an AI agent to read these docs instead, use llms-full.txt — the Copy page button above puts it on your clipboard.
BASE URLhttps://scalarware.com/api/v1
Call the API directlyUse cURL, Python, JavaScript, or any HTTP client. No skill required.Start with REST Give it to an AIShare llms.txt or install the optional Scalarware Media skill for Claude and Codex.Agent setup Run on rented GPUsRent private capacity and optionally import the same media skill onto the machine.Browse GPUs
OVERVIEW
API reference
Every Scalarware API is one base URL and one bearer token. Requests and responses are JSON; language inference follows the OpenAI chat-completions schema so existing clients work unchanged.
Base URL
bash
https://scalarware.com/api/v1
API groups
Model APIs
List models and run language inference across the live catalog, billed at the published rate.
Image and video
Create asynchronous media jobs, poll them, and download outputs with the same key.
GPUs
Browse live capacity, quote a template, launch a private machine, and destroy it.
Workspace
Manage API keys, read the wallet balance, and review usage.
Authentication
bash
Authorization: Bearer $SCALARWARE_API_KEY
Keys carry scopes. inference:read and inference:write cover models, chat and media; compute:read and compute:write cover GPUs. A call outside a key's scopes returns 401.
Billing
Requests are metered against the workspace balance at the published rate with no Scalarware markup. A request is priced before it runs and refused with 402 insufficient_balance when the workspace cannot cover it. GPU runtime is charged every minute a machine is up.
01 · GET STARTED
Your first direct API call
You do not need Claude, Codex, a Scalarware skill, or a rented GPU. Every media operation is available through normal authenticated HTTP.
Same API underneathThe skill does not create a second execution system. It teaches the agent how to validate inputs and call the authenticated Scalarware endpoints documented here.
04 · DISCOVERY
Media model catalog
Returns only Scalarware-supported media models. Each object includes its exact JSON input schema, current price tiers, billing metric, and pricing guard.
List normalized live routes, then call a model using the familiar chat-completions schema. Scalarware keeps route selection private and supports streamed responses.
Deployment mutations use the signed-in workspace session. A quote reserves a specific eligible offer for five minutes; launch requires the customer's SSH public key and an explicit confirmation.
Customer-direct accessScalarware injects the customer's SSH key and returns a direct tunnel command. Model ports remain private and the instance is automatically destroyed at the selected runtime cap.
WORKSPACE API
Keys, wallet, and usage
These endpoints use the signed-in workspace session. API key tokens are shown once at creation.
Before a job starts, Scalarware calculates the maximum supported cost and reserves it from the wallet. After completion, the final cost is settled from output images or video seconds and unused credit is released.
Prices can changeScalarware verifies configured rates against the current public pricing source before spending. A mismatch blocks creation with pricing_refresh_required.
09 · SUPPORTED MODELS
Image models
These are the only image models currently accepted by POST /images/generations. Required inputs are marked with an asterisk.
image model
Nano Banana 2
google/nano-banana-2
Fast image generation and conversational multi-image editing.
$0.067 1K$0.10 2K$0.15 4K
InputTypeRules
prompt*string—
resolutionstring1K · 2K · 4K · default: 1K
image model
GPT Image 2
openai/gpt-image-2
Image generation and editing with instruction and text rendering.
$0.012 Low$0.047 Medium$0.13 High / auto
InputTypeRules
prompt*string—
qualitystringlow · medium · high · auto · default: auto
image model
Seedream 5 Lite
bytedance/seedream-5-lite
Image generation with built-in reasoning and editing.
$0.035 Per image
InputTypeRules
prompt*string—
image model
Grok Imagine Image
xai/grok-imagine-image
Image generation and editing with Grok Imagine.
$0.020 Per image
InputTypeRules
prompt*string—
Video models
These are the only video models currently accepted by POST /videos/generations.
video model
Wan 3
alibaba/wan-3
Text- and image-to-video with cinematic motion.
$0.025 480p / second$0.050 720p / second$0.10 1080p / second