cURL
curl --request POST \ --url https://api.orcarouter.ai/v1/images/edits \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: multipart/form-data' \ --form model=gpt-image-1 \ --form image='@example-file' \ --form 'prompt=<string>' \ --form mask='@example-file' \ --form n=1 \ --form size=1024x1024 \ --form response_format=url
{ "created": 123, "data": [ { "url": "<string>", "b64_json": "<string>", "revised_prompt": "<string>" } ] }
OrcaRouter API keys look like sk-orca-.... Pass them in the Authorization: Bearer sk-orca-... header.
sk-orca-...
Authorization: Bearer sk-orca-...
"gpt-image-1"
"1024x1024"
url
b64_json
OK
Show child attributes