Replicate · Example Payload

Replicate Create Prediction Example

Example of creating a prediction to run Stable Diffusion XL for image generation.

Artificial IntelligenceMachine-LearningImage-GenerationLanguage ModelsModel Deployment

Replicate Create Prediction Example is an example object payload from Replicate, with 4 top-level fields. It illustrates the shape of data this provider's APIs accept or return.

Top-level fields

titledescriptionrequestresponse

Example Payload

Raw ↑
{
  "title": "Create a Prediction",
  "description": "Example of creating a prediction to run Stable Diffusion XL for image generation.",
  "request": {
    "method": "POST",
    "url": "https://api.replicate.com/v1/predictions",
    "headers": {
      "Authorization": "Bearer $REPLICATE_API_TOKEN",
      "Content-Type": "application/json"
    },
    "body": {
      "version": "da77bc59ee60423279fd632efb4795ab731d9e3ca9705ef3341091fb989b7eaf",
      "input": {
        "prompt": "An astronaut riding a rainbow unicorn, cinematic, dramatic lighting",
        "negative_prompt": "ugly, blurry, low quality",
        "width": 1024,
        "height": 1024,
        "num_inference_steps": 30
      },
      "webhook": "https://example.com/webhook",
      "webhook_events_filter": ["completed"]
    }
  },
  "response": {
    "status": 201,
    "body": {
      "id": "xyz1234abc5678",
      "version": "da77bc59ee60423279fd632efb4795ab731d9e3ca9705ef3341091fb989b7eaf",
      "urls": {
        "get": "https://api.replicate.com/v1/predictions/xyz1234abc5678",
        "cancel": "https://api.replicate.com/v1/predictions/xyz1234abc5678/cancel"
      },
      "created_at": "2026-05-02T10:00:00.000Z",
      "started_at": null,
      "completed_at": null,
      "status": "starting",
      "input": {
        "prompt": "An astronaut riding a rainbow unicorn, cinematic, dramatic lighting",
        "negative_prompt": "ugly, blurry, low quality",
        "width": 1024,
        "height": 1024,
        "num_inference_steps": 30
      },
      "output": null,
      "error": null,
      "logs": null,
      "metrics": {}
    }
  }
}

Work with this as data

Every example 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 examples

4 MCP tools reach this
  • find_examplesBrowse and filter every example in the catalog.
  • 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 example
curl "https://apis.io/api/v1/examples/replicate-create-prediction-example"
All examples
curl "https://apis.io/api/v1/examples?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

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. See our Privacy Policy and Terms.

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