API reference
🇺🇸 English
  • 🇨🇳 Chinese
  • 🇺🇸 English
  1. Replicate
API reference
🇺🇸 English
  • 🇨🇳 Chinese
  • 🇺🇸 English
  • Chat Models
    • Chat
      • Create chat completion
      • vision
    • OpenAI-Realtime
    • Completions
      • Instruct
    • Audio
      • Transcriptions
      • Translations
      • Speech
    • Image generation
      • DALL·E 3
    • Embeddings
      • Create
    • Models
      • model list
    • Help
      • 常见问题及解决办法
  • Anthropic
    • Anthropic Claude
      POST
  • Suno
    • Generate music
      POST
    • Generate lyrics
      POST
    • Upload music
      POST
    • Music concat
      POST
    • Fetch task
      GET
    • Fetch batch tasks
      POST
  • Udio
    • Generate music
      POST
    • Fetch task
      GET
  • Midjourney API
    • Quick
    • Task Submit
      • Imagine
      • Action
      • Modal
      • Blend
      • Describe
      • Shorten
      • Upload discord
    • Get Task
      • Fetch task by ids
      • Fetch task by id
      • Get seed
  • Flux
    • Official
      • Generate
      • Finetune
      • Fetch task
    • OpenAI Dalle3
      POST
  • Recraft
    • Official
      • Generate Image
      • Vectorize Image
      • Remove Background
      • Clarity Upscale
      • Generative Upscale
      • Create style
    • OpenAI Dalle3
  • Ideogram
    • Generate
    • Remix
    • Edit
    • Upscale
    • Describe
  • Luma
    • Official
      • Generate
      • Fetch task
    • Own format
      • Submit
        • Generate
        • Get video of no mark
        • 扩展视频
      • Get task
        • Get task
        • Get batch task
  • Runway
    • Official
      • image to video
      • get task
    • reverse
      • text to video
      • image to video
      • video2video
      • Act-one
      • Get task
  • Kling-API
    • Callback
    • Generate image
    • Text 2 Video
    • Image 2 Video
    • Video extend
    • Get task
    • lip-sync
    • kolors-virtual-try-on
  • Replicate
    • Generate
      POST
    • Get
      GET
  • MiniMax
    • Generate video
    • Get task
    • Get file
  1. Replicate

Get

GET
/replicate/v1/predictions/{id}
Last modified:2025-02-05 11:37:26

Request

Authorization
Provide your bearer token in the
Authorization
header when making requests to protected resources.
Example:
Authorization: Bearer ********************
Path Params
id
string 
required
Header Params
Authorization
string 
optional
Default:
{{YOUR_API_KEY}}

Request samples

Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift
curl --location -g --request GET '/replicate/v1/predictions/' \
--header 'Authorization: '

Responses

🟢200成功
application/json
Body
object {0}
Example
{
  "id": "t2s7f615pdrm40ck09v88sm224",
  "model": "black-forest-labs/flux-schnell",
  "version": "dp-4d0bcc010b3049749a251855f12800be",
  "input": {
    "prompt": "black forest gateau cake spelling out the words \"FLUX SCHNELL\", tasty, food photography, dynamic shot"
  },
  "logs": "Using seed: 60392\nrunning quantized prediction\nUsing seed: 60392\n  0%|          | 0/4 [00:00<?, ?it/s]\n 50%|█████     | 2/4 [00:00<00:00, 18.90it/s]\n100%|██████████| 4/4 [00:00<00:00, 13.76it/s]\n100%|██████████| 4/4 [00:00<00:00, 14.34it/s]\nTotal safe images: 1 out of 1\n",
  "output": [
    "https://replicate.delivery/yhqm/ET5pE6NBPtbKGVXfuHLhyfTEsNAZu6Z1X1aR6PufeXf0rqydC/out-0.webp"
  ],
  "data_removed": false,
  "error": null,
  "status": "succeeded",
  "created_at": "2024-11-06T17:11:57.619Z",
  "started_at": "2024-11-06T17:11:57.625316416Z",
  "completed_at": "2024-11-06T17:11:58.232302833Z",
  "urls": {
    "cancel": "https://api.replicate.com/v1/predictions/t2s7f615pdrm40ck09v88sm224/cancel",
    "get": "https://api.replicate.com/v1/predictions/t2s7f615pdrm40ck09v88sm224",
    "stream": "https://stream.replicate.com/v1/files/wcdb-c34r7kxfbxiit6ukraxcir7dtxmqtu6zoirh6xiawnvn44bqilyq"
  },
  "metrics": {
    "image_count": 1,
    "predict_time": 0.606986414
  }
}
Previous
Generate
Next
Generate video
Built with