header when making requests to protected resources.
Example:
Authorization: Bearer ********************
Body Params application/json
Example
{"input":{"size":"2K","width":2048,"height":2048,"prompt":"a photo of a store front called i\"sedream 4\", it sells books, a poster in the window says i\"sedream 4 now on Replicate!\"","max_images":2,"image_input":[],"aspect_ratio":"4:3","sequential_image_generation":"auto"}}
Request Code 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--request POST 'https://www.16api.com/replicate/v1/models/bytedance/seedream-4/predictions' \
--header'Authorization: Bearer <token>' \
--header'Content-Type: application/json' \
--data-raw'{
"input": {
"size": "2K",
"width": 2048,
"height": 2048,
"prompt": "a photo of a store front called i\"sedream 4\", it sells books, a poster in the window says i\"sedream 4 now on Replicate!\"",
"max_images": 2,
"image_input": [],
"aspect_ratio": "4:3",
"sequential_image_generation": "auto"
}
}'