SpicyAPI Tasks API

The Tasks API from SpicyAPI — 7 operation(s) for tasks.

GitHub OpenAPI
Business capability
Model Inference AE-110.10

Operations 7

Each operation below carries the questions people ask an LLM about it and the instructions they give an agent to run it. Generated by API Evangelist overlay

POST /api/v1/jobs/quote Get a quote before reserving funds for a generation task · Quote a task before reserving funds #
Ask an LLM
“How do I check the cost of a generation task before I reserve funds?”
“Is a quote valid across different API keys on the same account?”
Tell an agent
Get a quote for a {model} generation with input {input}.
Validate a quote {quoteId} for {model} with input {input} and expected cost {expectedCost}.
POST /api/v1/jobs/createTask Create a generation task and reserve funds · Create an asynchronous generation task #
Ask an LLM
“How do I start a generation task and hold the estimated cost?”
“Can I wait for a generation task to finish before the connection closes?”
Tell an agent
Create a {model} generation task with input {input}.
Create a {model} generation task with input {input} and wait {wait} seconds for it to finish.
GET /api/v1/jobs/recordInfo Get a generation task's result · Get a task created by the authenticated API key #
Ask an LLM
“How do I fetch the output of a generation task I already created?”
“What does a finished task's result contain?”
Tell an agent
Get the result of task {taskId}.
Show generation task {taskId}.
POST /api/v1/jobs/stream Stream a text model's answer in real time · Run a text model and stream the answer #
Ask an LLM
“Can I stream a text model's answer chunk by chunk over Server-Sent Events?”
“Does streaming a text model hold the estimated cost until the stream ends?”
Tell an agent
Stream the answer from {model} for input {input}.
Stream {model} with input {input} and callback URL {callBackUrl}.
POST /api/v1/jobs/retry Retry a failed or expired generation task · Create a new task from a failed or expired task #
Ask an LLM
“How do I retry a generation task that failed or expired?”
“Can I retry a task using a different API key than the one that created it?”
Tell an agent
Retry task {taskId}.
Create a new generation task from the failed task {taskId}.
POST /api/v1/jobs/purge Destroy a finished task's stored content · Destroy the stored content of a finished task #
Ask an LLM
“How do I delete the stored media and prompt of a finished generation task?”
“Does purging a task remove the billing record?”
Tell an agent destructive · confirm first
Purge the stored content of task {taskId}.
Destroy the media and prompt of finished task {taskId}.
GET /api/v1/jobs List generation tasks for my API key · List task history for the authenticated API key #
Ask an LLM
“Which generation tasks has my API key created recently?”
“Can I filter my task history by model or state?”
Tell an agent
List my generation tasks.
List tasks created by my API key with state {state}.

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/spicyapi:spicyapi-tasks-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

spicyapi-tasks-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: SpicyAPI Public Tasks API
  version: 1.0.0
  description: Contract for the implemented `/api/v1` integration surface.
servers:
- url: https://api.spicyapi.ai
  description: Production
security:
- bearerAuth: []
tags:


# --- truncated at 32 KB (51 KB total) ---
# Full source: https://artifacts.apis.io/spicyapi/openapi/spicyapi-tasks-api-openapi.yml