Skip to main content
POST
cURL
Upload one source to an active asset group. Send the raw access token in the Authorization header without a Bearer prefix. A real-person group accepts image assets only.

Upload a file

Use the file field for a local source:

Upload an image URL

Use the JSON form for a source that is available at a public URL:
The request must include exactly one source: file, url, or data. The optional name field accepts up to 64 characters. Save data.id from the response. New assets usually return data.status=processing, so use Retrieve a character asset until the status is active. If the group is not active, the API returns success: false with a message explaining the group state. Check success and message for business errors even when the HTTP response is 200.

Authorizations

Authorization
string
header
required

Raw CometAPI access token. Do not prefix it with Bearer.

Body

Provide exactly one source: file, url, or data.

group_id
string
required

Active CometAPI group ID.

Example:

"ag-example"

asset_type
enum<string>
required

Asset media type.

Available options:
image,
video,
audio
name
string

Optional asset name.

Maximum string length: 64
file
file

Local file source.

url
string<uri>

Public HTTPS source URL.

Pattern: ^https://
data
string

Base64 or data URI source.

Response

Asset accepted for processing.

success
boolean
required

Whether the request succeeded.

message
string
required

Status or error message.

data
object
required
Last modified on December 1, 2026