Skip to main content
POST
/
edit
Edit Document
curl --request POST \
  --url https://platform.aifano.com/edit \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "document_url": "<string>",
  "edit_instructions": "<string>"
}
'
{
  "job_id": "<string>",
  "duration": 123,
  "usage": {
    "num_pages": 123,
    "credits": 123
  },
  "result": {}
}

Authorizations

Authorization
string
header
required

API key authentication. Use your Aifano API key (starts with ak_live_) as the Bearer token.

Body

application/json
document_url
string
required

URL or aifano:// reference to the document to edit.

edit_instructions
string
required

Natural language instructions for editing the document.

Response

Successful edit

job_id
string
duration
number
usage
object
result
object