Skip to Content

Upload Image

Upload an image to obtain a reusable URL for image or video generation APIs.

Endpoint

POST https://123api.co/v1/uploads/images

Request Example

curl --request POST \ --url https://123api.co/v1/uploads/images \ --header 'Authorization: Bearer <token>' \ --form file='@example.png'

Typical Response

{ "url": "https://your-uploaded-image-url.example.com/example.png" }

Typical Usage

  1. Upload the source image
  2. Save the returned URL
  3. Pass that URL into image or video generation requests