Stability AI · Example Payload

Stability Ai Generate Image Core Example

3D GenerationAIGenerative AIImage GenerationImage EditingMachine LearningStable DiffusionText to ImageVideo Generation

Stability Ai Generate Image Core Example is an example object payload from Stability AI, with 3 top-level fields. It illustrates the shape of data this provider's APIs accept or return.

Top-level fields

requestresponsejson_response_example

Example Payload

Raw ↑
{
  "request": {
    "endpoint": "POST /v2beta/stable-image/generate/core",
    "content_type": "multipart/form-data",
    "fields": {
      "prompt": "A photorealistic golden retriever puppy playing in autumn leaves, warm afternoon light, shallow depth of field",
      "negative_prompt": "blurry, low quality, cartoon, artificial",
      "aspect_ratio": "1:1",
      "output_format": "png",
      "seed": 42,
      "style_preset": "photographic"
    }
  },
  "response": {
    "status": 200,
    "content_type": "image/png",
    "headers": {
      "finish-reason": "SUCCESS",
      "seed": "42"
    },
    "note": "Response body is binary PNG image data. When Accept: application/json is set, returns base64-encoded image."
  },
  "json_response_example": {
    "image": "iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAA...",
    "finish_reason": "SUCCESS",
    "seed": 42
  }
}