Skip to main content

Developer glossary

Understand the API before you integrate it.

Search and filter practical definitions for async tasks, webhook verification, USD submission holds, retention clocks and model-level refusals.

01

Tasks & Webhooks

Asynchronous generation API

Definition

An API that accepts a media request, returns a durable task ID, and completes outside the original HTTP request.

Implementation note

Persist the task ID before polling or waiting for a webhook. Queued and running are active; succeeded, failed and expired are terminal. Accepted tasks cannot be canceled.

Related page →
02

Tasks & Webhooks

Idempotency key

Definition

A client-generated identifier that lets repeated submissions resolve to one logical task instead of creating duplicate billable work.

Implementation note

Reuse the same key only for the same validated request. Store it with the task and return the original result when a retry arrives.

Related page →
03

Tasks & Webhooks

Webhook signature

Definition

A cryptographic value attached to a callback so the receiver can verify that the event came from the API and was not changed in transit.

Implementation note

Verify the raw request body, reject stale timestamps and deduplicate event IDs before changing task or billing state.

Related page →
04

Tasks & Webhooks

Model schema

Definition

The machine-readable contract describing a model's accepted fields, types, limits, defaults and output shape.

Implementation note

Generate forms and server validation from the published schema, and pin or record the schema version used for each task. Unknown fields return HTTP 400 rather than being ignored.

Related page →
05

Billing & Holds

Usage-based USD pricing

Definition

A billing model priced in US dollars per measured output unit — each image, output second, megapixel, token or request — with no prepaid packs or token conversions.

Implementation note

Quote the exact request before submitting. Options such as resolution, duration and generate_audio switch price tiers immediately, so surface the live estimate beside those controls.

Related page →
06

Billing & Holds

Submission hold and settlement

Definition

The USD amount reserved from your prepaid balance when a media task is accepted, acting as the billing ceiling until final settlement.

Implementation note

For accepted media tasks, final settlement never exceeds the held amount. Failed or timed-out tasks release the hold automatically, except on models whose page explicitly states that content refusals are billed.

Related page →
07

Media & Retention

Reference image

Definition

An input image used to guide identity, composition, style or motion in an image or video generation request.

Implementation note

Collect provenance and consent, validate format and size (up to 10 MiB upload or 1 MiB decoded data URI), and never treat a reference image as permission to reproduce a real person's likeness.

Related page →
08

Media & Retention

Retention clocks and manual purge

Definition

Account-level and per-request expiry limits for uploads (up to 1 day), generated CDN assets (up to 14 days) and prompts (up to 30 days), plus on-demand task destruction.

Implementation note

Tighten clocks in console settings or per request via header, and call the purge endpoint after copying outputs to your own storage. SpicyAPI never trains models on your prompts or outputs and runs no public feed.

Related page →
09

Models & Content

AI model with reduced content filtering

Definition

A model option with fewer built-in content filters that handles a wider creative range; the label is product information, not platform approval.

Implementation note

Implement the age, consent, real-person and jurisdiction controls your own users and service require before submitting a request.

Related page →
10

Models & Content

Model-level refusal (content_rejected)

Definition

An error returned when the selected model itself declines a prompt or enforces a real-face consent check, independent of any platform filter.

Implementation note

SpicyAPI runs no per-request content classifier. Treat content_rejected as non-retryable until the prompt or inputs change, and inspect softened-tier outputs because a toned-down run still succeeds and settles.

Related page →

Ready to connect a model?

Review model inputs, examples and current pricing, then check the estimate for your actual settings before you run.