API reference
API reference
Every endpoint of the ImgSearch API, version 2.0.0, from its OpenAPI document.
https://imgsearch.com/llms.txt
Base URL: https://imgsearch.com/api/v2. Send Authorization: Bearer <API key or OAuth token> on every call but the public ones, and JSON bodies with Content-Type: application/json. Every answer is JSON (files, redirects and the YAML spec aside) and carries X-Request-Id and ImgSearch-Api-Version: 2.0.0. The OpenAPI document is at https://imgsearch.com/api/v2/openapi.yaml and https://imgsearch.com/api/v2/openapi.json. Errors: error codes. Limits: rate and crawl limits.
Meta #
The API itself, its status and this document.
Models #
The AI Generator's models and their prices in US dollars.
Licenses #
What each source's files may be used for.
Account #
The account behind the key or token.
-
GET
/accountThe account behind the key or token, and the connection itself -
GET
/account/balanceThe AI balance in US dollars, by source and lot -
GET
/account/balance/transactionsThe AI balance's ledger in US dollars, newest first -
GET
/account/limitsHow the account stands against its limits right now -
GET
/account/savingsWhat this account's agents reused instead of generating
Search #
One search over every public source, with comparable scores and what generating instead would cost.
Assets #
One asset's card.
Downloads #
Files and signed links, counted under fair use only when delivered; the download history.
Generations #
The AI Generator, for keys made with spending allowed: estimate, start (Idempotency-Key and max_usd), poll, cancel, the files by 10-minute links, the free side actions and uploads.
-
POST
/generations/estimateWhat a generation would cost, and whether this key could start it now -
GET
/generationsYour generations, newest first -
POST
/generationsStart a generation (spends AI balance) -
POST
/uploadsUpload a picture to use as a reference -
GET
/generations/{id}One generation -
DELETE
/generations/{id}Delete a finished generation and its files -
PATCH
/generations/{id}Rename, star, or change a meme's captions -
POST
/generations/{id}/cancelCancel a generation that has not started -
GET
/generations/{id}/outputs/{n}An output's file, to the bearer -
POST
/generations/{id}/upscaleUpscale one of a generation's pictures 2× (spends AI balance) -
POST
/generations/{id}/exportsA 3D model in another format (free) -
GET
/generations/{id}/exports/{key}One export's state and links -
POST
/generations/{id}/arView a 3D model in AR (free) -
POST
/generations/{id}/soundtrackPut one of your tracks (and a voiceover) on a clip (free) -
POST
/generations/{id}/voiceover-videoLay a finished voiceover on one of your clips (free) -
GET
/generation-files/{token}Fetch one of your generation files by its signed link -
PUT
/upload-links/{token}Upload a reference picture to a signed upload link
Webhooks #
The account's events feed and the webhook endpoints they are sent to, signed as Standard Webhooks; the low-balance alert.
-
GET
/eventsThe account's events, oldest first -
GET
/events/settingsThe low-balance alert -
PATCH
/events/settingsSet or turn off the low-balance alert -
GET
/webhooksYour webhook endpoints -
POST
/webhooksAdd an endpoint -
GET
/webhooks/{id}One endpoint -
DELETE
/webhooks/{id}Delete an endpoint and its delivery log -
PATCH
/webhooks/{id}Change an endpoint, or turn it off or on -
POST
/webhooks/{id}/testSend a webhook.test event -
POST
/webhooks/{id}/rotate-secretA new signing secret -
GET
/webhooks/{id}/deliveriesAn endpoint's delivery log, newest first -
POST
/webhooks/{id}/deliveries/{eventId}/redeliverSend an event to this endpoint again