Zum Hauptinhalt springen
POST
/
asset
/
files
Ein Asset hochladen (Bild / Video / Audio)
curl --request POST \
  --url https://api.orcarouter.ai/v1/asset/files \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "GroupId": "group-20260318033332-ab12c",
  "URL": "https://your-cdn.com/zhang/full_body.jpg",
  "AssetType": "Image",
  "Name": "full_body_front"
}
'
{
  "Id": "asset-20260318071009-xy98z"
}

Autorisierungen

Authorization
string
header
erforderlich

OrcaRouter-API-Schlüssel sehen aus wie sk-orca-.... Übergib sie im Authorization: Bearer sk-orca-...-Header.

Body

application/json
GroupId
string
erforderlich

Die ID einer dir gehörenden Gruppe.

URL
string
erforderlich

Öffentlich zugängliche Bild- / Video- / Audio-URL.

AssetType
enum<string>
erforderlich
Verfügbare Optionen:
Image,
Video,
Audio
Name
string

Optional; nur für die unscharfe Suche von ListAssets verwendet.

Moderation
object

Optional. {"Strategy":"Skip"}, um den Inhalts-Vorfilter zu überspringen.

Antwort

Asset angenommen (asynchron — GET /asset/files/{id} abfragen)

Id
string