PopNow AI Media API
The Media API from PopNow AI — 4 operation(s) for media.
The Media API from PopNow AI — 4 operation(s) for media.
Every API here is available over the APIs.io API and to AI agents over MCP.
One button, every client — Claude, Cursor, VS Code and the rest.
https://apis.io/mcp
find_apisBrowse and filter every API in the catalog.get_api_artifactsOne API's artifacts, grouped by type.get_openapiThe primary OpenAPI for this API.find_similar_apisAPIs that look like this one.apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.resolveTurn a domain, URL or GitHub org into the provider it belongs to.find_cohortsEvery scored population of providers in the catalog.curl "https://apis.io/api/v1/apis/popnow-ai:popnow-ai-media-api"
curl "https://apis.io/api/v1/apis?limit=25"
Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.
Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.
A second provider on the same verified email joins the account you already have.
openapi: 3.2.0
info:
title: Popnow Ai Media API
version: 1.0.0
description: 'Operations tagged Media across 2 of this provider''s published API definitions: openapi.yaml, popnow-ai-openapi.yml. Each path carries the servers of the definition it was published in.'
servers:
- url: https://api.popnow.ai
description: Production
security:
- bearerAuth: []
tags:
- name: Media
paths:
/api/v1/common/upload-url:
post:
tags:
- Media
operationId: createUploadUrl
summary: Create a presigned image upload ticket
description: 'The server generates the object key. Upload the exact declared number of
bytes with PUT and copy every returned header. Supported media types are
JPEG, PNG, WebP and GIF images (10 MiB), or MP4/WebM video and
MP3/WAV audio (90 MiB, at most 600 seconds). Audio/video commit verifies
format and measurable duration; it does not apply a platform content filter.
LoRA weights are uploaded as `application/octet-stream` (a `.safetensors`
file, up to 2 GiB; the ticket stays valid for 2 hours); commit checks that it
is a complete safetensors file, and the returned URI goes in `loras[].path`.
After PUT, call the file commit endpoint and use its popnow:// URI in task input.'
requestBody:
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/UploadURLRequest'
responses:
'200':
description: Presigned upload ticket.
content:
application/json:
schema:
$ref: '#/components/schemas/UploadURLEnvelope'
'400':
$ref: '#/components/responses/BadRequest'
'401':
$ref: '#/components/responses/Unauthorized'
'403':
$ref: '#/components/responses/Forbidden'
'413':
$ref: '#/components/responses/PayloadTooLarge'
'429':
$ref: '#/components/responses/RateLimited'
'500':
$ref: '#/components/responses/ServerError'
servers:
- url: https://api.popnow.ai
description: Production
/api/v1/files/{fileId}/commit:
post:
tags:
- Media
operationId: commitUploadedFile
summary: Commit a completed direct upload
description: 'Compares the stored byte count and media type with the ticket, checks
the image signature, computes SHA-256, and copies the temporary object
to an immutable private key. Reference this uploaded file with the returned
popnow:// URI. Publicly accessible HTTPS media URLs can instead be passed
directly in supported model input fields, without uploading. Repeating
a successful commit is idempotent.'
parameters:
- name: fileId
in: path
required: true
schema:
type: string
pattern: ^fil_
responses:
'200':
description: Ready tenant-scoped file reference.
content:
application/json:
schema:
$ref: '#/components/schemas/FileCommitEnvelope'
'400':
$ref: '#/components/responses/BadRequest'
'401':
$ref: '#/components/responses/Unauthorized'
'403':
$ref: '#/components/responses/Forbidden'
'404':
$ref: '#/components/responses/NotFound'
'409':
$ref: '#/components/responses/Conflict'
'429':
$ref: '#/components/responses/RateLimited'
'500':
$ref: '#/components/responses/ServerError'
servers:
- url: https://api.popnow.ai
description: Production
/api/v1/files/import:
post:
tags:
- Media
operationId: importLoraFile
summary: Import a LoRA weights file from a link
description: 'Downloads a `.safetensors` LoRA file once and stores it as your upload, so a
file that needs a sign-in can still be used without making it public. `url`
accepts a Hugging Face repo id (`owner/repo`, when the repo has exactly one
`.safetensors` file), a Hugging Face repo or file page, or any direct https
link. `token` is optional: a Hugging Face access token, or a Civitai API key,
used only for this download and never stored. The response matches the
commit endpoint; put its popnow:// URI in `loras[].path`. Imported files are
kept for the same time as other uploads. Public links can also be passed to
`loras[].path` directly, without importing.'
requestBody:
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/LoraImportRequest'
responses:
'200':
description: Ready tenant-scoped file reference.
content:
application/json:
schema:
$ref: '#/components/schemas/FileCommitEnvelope'
'400':
$ref: '#/components/responses/BadRequest'
'401':
$ref: '#/components/responses/Unauthorized'
'403':
$ref: '#/components/responses/Forbidden'
'429':
$ref: '#/components/responses/RateLimited'
'500':
$ref: '#/components/responses/ServerError'
'503':
$ref: '#/components/responses/Unavailable'
servers:
- url: https://api.popnow.ai
description: Production
/api/v1/common/download-url:
post:
tags:
- Media
operationId: createDownloadUrl
summary: Create a short-lived task output download URL
description: 'The server verifies both task ownership and that the requested key is an
output of that task. Leave `key` empty to select the first output.'
requestBody:
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/DownloadURLRequest'
responses:
'200':
description: Short-lived download ticket.
content:
application/json:
schema:
$ref: '#/components/schemas/DownloadURLEnvelope'
'400':
$ref: '#/components/responses/BadRequest'
'401':
$ref: '#/components/responses/Unauthorized'
'403':
$ref: '#/components/responses/Forbidden'
'404':
$ref: '#/components/responses/NotFound'
'409':
$ref: '#/components/responses/Conflict'
'413':
$ref: '#/components/responses/PayloadTooLarge'
'429':
$ref: '#/components/responses/RateLimited'
'500':
$ref: '#/components/responses/ServerError'
servers:
- url: https://api.popnow.ai
description: Production
components:
schemas:
DownloadURLRequest:
type: object
required:
- taskId
additionalProperties: false
properties:
taskId:
type: string
minLength: 1
key:
type: string
description: Optional output key; empty selects the first output.
UploadURLEnvelope:
allOf:
- $ref: '#/components/schemas/EnvelopeBase'
- type: object
required:
- data
properties:
code:
type: integer
const: 200
msg:
type: string
const: success
data:
$ref: '#/components/schemas/UploadURLResponse'
FileCommitResponse:
type: object
required:
- fileId
- status
- bytes
- contentType
- sha256
- uri
- expiresAt
properties:
fileId:
type: string
pattern: ^fil_
status:
type: string
const: ready
bytes:
type: integer
minimum: 1
contentType:
type: string
enum:
- image/jpeg
- image/png
- image/webp
- image/gif
- video/mp4
- video/webm
- audio/mpeg
- audio/wav
- application/pdf
- application/msword
- application/vnd.openxmlformats-officedocument.wordprocessingml.document
- application/vnd.ms-excel
- application/vnd.openxmlformats-officedocument.spreadsheetml.sheet
- application/vnd.ms-powerpoint
- application/vnd.openxmlformats-officedocument.presentationml.presentation
- application/vnd.apple.keynote
- application/vnd.apple.pages
- application/vnd.apple.numbers
- text/plain
- text/markdown
sha256:
type: string
pattern: ^[a-f0-9]{64}$
uri:
type: string
pattern: ^popnow://f/fil_
expiresAt:
type: string
format: date-time
durationSeconds:
type: string
description: Measured audio/video duration in seconds.
width:
type: integer
minimum: 0
height:
type: integer
minimum: 0
DownloadURLEnvelope:
allOf:
- $ref: '#/components/schemas/EnvelopeBase'
- type: object
required:
- data
properties:
code:
type: integer
const: 200
msg:
type: string
const: success
data:
$ref: '#/components/schemas/DownloadURLResponse'
UploadURLRequest:
type: object
required:
- contentType
- bytes
additionalProperties: false
properties:
contentType:
type: string
enum:
- image/jpeg
- image/png
- image/webp
- image/gif
- video/mp4
- video/webm
- audio/mpeg
- audio/wav
- application/pdf
- application/msword
- application/vnd.openxmlformats-officedocument.wordprocessingml.document
- application/vnd.ms-excel
- application/vnd.openxmlformats-officedocument.spreadsheetml.sheet
- application/vnd.ms-powerpoint
- application/vnd.openxmlformats-officedocument.presentationml.presentation
- application/vnd.apple.keynote
- application/vnd.apple.pages
- application/vnd.apple.numbers
- text/plain
- text/markdown
- application/octet-stream
bytes:
type: integer
minimum: 1
maximum: 2147483648
description: Images are limited to 10 MiB; supported audio/video and documents to 90 MiB; LoRA weights (application/octet-stream, a .safetensors file) to 2 GiB.
DownloadURLResponse:
type: object
required:
- key
- url
- expiresAt
properties:
key:
type: string
url:
type: string
format: uri
expiresAt:
type: string
format: date-time
ErrorEnvelope:
allOf:
- $ref: '#/components/schemas/EnvelopeBase'
- type: object
properties:
code:
type: integer
enum:
- 400
- 40003
- 40004
- 401
- 40201
- 40202
- 403
- 40301
- 40302
- 40303
- 40310
- 404
- 409
- 40901
- 413
- 429
- 500
- 503
- 50301
- 50302
description: 'Business code. `40003`: an uploaded file''s actual size, media type or signature does not match its upload ticket (file commit). `40004`: the request is valid but no deployment can serve this exact parameter combination; change the named parameter and retry. `503`: a dependency is temporarily unavailable (for example a list or usage query timed out, or inline image storage failed); honour `Retry-After` when present. `50301`: the model has no usable deployment or effective price right now. `50302`: a synchronous generation (streaming) failed upstream and the charge was refunded. Retry with a **new** `Idempotency-Key` — the original key replays the same failure, so a transport-level retry that keeps the key can never succeed. `40301`: this key is not allowed to call this model — check the key''s model restrictions in the Console. `40302`: the caller''s address is not in this key''s IP allow-list. `40303`: the request comes from a region this service is not offered in; the message deliberately does not state how that is determined, and neither does this description. `40310`: the account has not verified its email address yet, so it cannot run models. Open the verification link that was emailed at sign-up, or send a new one from the Console; the key starts working as soon as the address is verified, with no change on your side.'
msg:
type: string
description: Human-readable explanation, English unless `Accept-Language` or the account's API error language selects another supported language. Never parse it; branch on `code`.
data:
type: object
description: 'Present only when the failure carries a machine-readable reason; otherwise absent. `code`, the HTTP status and `msg` are the same with or without it. `asset_library_locked` (400): the asset library opens after the first top-up. `asset_library_full` (400): the allowance is full. `asset_file_too_large` (400): the file is above the plan''s per-file limit. `asset_daily_limit` (429): the daily number of new assets is reached; honour `Retry-After`. `asset_storage_full` (503): storage is full across the platform. `asset_permission_denied` (403): the caller''s team role does not allow this change. `asset_workspace_forbidden` (403): this key or workspace cannot reach that library. `adult_content`, `minor_safety` and `image_rejected` (400): the content safety gate declined the prompt or an input image before anything was charged. New values may be added; treat unknown values like an absent reason.'
required:
- reason
properties:
reason:
type: string
enum:
- asset_library_locked
- asset_library_full
- asset_file_too_large
- asset_daily_limit
- asset_storage_full
- asset_permission_denied
- asset_workspace_forbidden
- asset_entity_name_taken
- unknown_model
- unknown_task
- insufficient_credits
- adult_content
- minor_safety
- image_rejected
- signup_paused
- agent_quota
- agent_rate
- agent_turns
- agent_skill_invalid
- agent_skill_turns
- price_changed
- agent_project_budget
- web_fetch
- team_role_cannot_spend
- team_allowance_reached
- team_wallet_empty
- team_limit_reached
- skill_quota
- skill_rate_needs_install
- handoff_invalid
- age_restricted
- apple_reauth_required
- pending
- other_account
- revoked
- invalid
- budget_exceeded
- mfa_required
- model_unavailable
- model_retired
UploadURLResponse:
type: object
required:
- fileId
- key
- uploadUrl
- method
- headers
- expiresAt
- maxBytes
properties:
fileId:
type: string
pattern: ^fil_
key:
type: string
pattern: ^popnow://f/fil_
description: Compatibility alias for the final URI; unusable until commit succeeds.
uploadUrl:
type: string
format: uri
method:
type: string
const: PUT
headers:
type: object
additionalProperties:
type: string
expiresAt:
type: string
format: date-time
maxBytes:
type: integer
minimum: 1
EnvelopeBase:
type: object
required:
- code
- msg
- request_id
properties:
code:
type: integer
msg:
type: string
request_id:
type: string
description: Correlation identifier. Include it in support requests.
FileCommitEnvelope:
allOf:
- $ref: '#/components/schemas/EnvelopeBase'
- type: object
required:
- data
properties:
code:
type: integer
const: 200
msg:
type: string
const: success
data:
$ref: '#/components/schemas/FileCommitResponse'
LoraImportRequest:
type: object
required:
- url
additionalProperties: false
properties:
url:
type: string
minLength: 1
maxLength: 2048
description: Hugging Face repo id (owner/repo), a Hugging Face repo or file page, or a direct https link to a .safetensors file.
token:
type: string
maxLength: 512
description: Optional Hugging Face access token or Civitai API key, used only for this download and never stored.
headers:
RateLimitLimit:
description: Capacity of the active account-level rate-limit window.
schema:
type: integer
RateLimitRemaining:
description: Remaining requests in the active window.
schema:
type: integer
RetryAfter:
description: Seconds to wait before retrying.
schema:
type: integer
minimum: 1
responses:
ServerError:
description: Internal failure. Details are not exposed; report `request_id` to support.
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorEnvelope'
BadRequest:
description: Invalid JSON, query, callback URL, model input, or media declaration. Invalid callBackUrl values return code 400 and msg "Invalid callback URL" with request_id. Submitted hosts, IP addresses, and DNS diagnostics are not echoed.
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorEnvelope'
PayloadTooLarge:
description: Request body exceeds the server's accepted size limit.
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorEnvelope'
NotFound:
description: Resource does not exist or is not visible to this account and API key. These cases are intentionally indistinguishable.
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorEnvelope'
RateLimited:
description: Account-level request limit exceeded.
headers:
X-RateLimit-Limit:
$ref: '#/components/headers/RateLimitLimit'
X-RateLimit-Remaining:
$ref: '#/components/headers/RateLimitRemaining'
Retry-After:
$ref: '#/components/headers/RetryAfter'
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorEnvelope'
Unauthorized:
description: Missing, malformed, expired, revoked, or otherwise invalid API key.
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorEnvelope'
Conflict:
description: Idempotency or media-transfer state conflicts with this request.
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorEnvelope'
Forbidden:
description: Account, model, API-key, IP, or region authorization failed.
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorEnvelope'
Unavailable:
description: 'HTTP 503 carries one of three business codes. `50301`: no usable deployment or effective customer price exists for the selected model. `503`: a dependency is temporarily unavailable; retry after the `Retry-After` header when it is present. `50302`: a synchronous generation failed upstream and the charge was refunded. Nothing was charged, but send the retry with a **new** `Idempotency-Key`: reusing the original one replays the recorded failure instead of generating again.'
headers:
Retry-After:
$ref: '#/components/headers/RetryAfter'
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorEnvelope'
securitySchemes:
bearerAuth:
type: http
scheme: bearer
bearerFormat: sk-popnow-<48 lowercase hex characters>
description: 'Send `Authorization: Bearer sk-popnow-...`. Create keys in the developer console at https://popnow.ai/api/console and keep them server-side.'
x-refined-from:
- openapi.yaml
- popnow-ai-openapi.yml