PaperOffice AI Media AI — Image Studio API
Image Studio jobs: image generation and background removal.
Image Studio jobs: image generation and background removal.
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/paperoffice-ai:paperoffice-ai-media-ai-image-studio-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: PaperOffice AI Media AI — Image Studio API
version: R20261120.1802
summary: 'PaperOffice AI, the Document Operations Platform: OCR, IDP, DMS, PDF, e-signatures, anonymization, workflows, translation, voice.'
description: 'Generated from the PaperOffice API SOT (release `R20261120.1802`). Agent documentation: llms.txt (index), integration guide and llms-full.txt. Check each response media type; downloads may be binary.
JSON success envelopes commonly carry `status: "success"`; JSON errors commonly carry `status: "error"`, `code` and `message`. Job endpoints hold the connection while `client_wait=true` (default) and answer HTTP 202 with `poll_url` when the hold window ends — poll `GET /job/get/{job_id}`. Operations that share one method and path list their documented variants in `x-paperoffice-variants`.'
servers:
- url: https://api.paperoffice.ai/latest
security:
- bearerAuth: []
tags:
- name: Media AI — Image Studio
description: 'Image Studio jobs: image generation and background removal.'
paths:
/job/add/paperoffice_imagestudio___generate:
post:
operationId: po-image-generate-image-premium-max-1280x1280
summary: Generate image
tags:
- Media AI — Image Studio
description: 'Image generate: POST /job/add/paperoffice_imagestudio___generate. Requires prompt. model basic|premium|ultra sets max size. output inline|base64|url (Postman default inline). precompile_prompt, inject_weather, force_location, num_images...'
externalDocs:
url: https://api.paperoffice.ai/latest/docs/endpoints/po-image-generate-image-premium-max-1280x1280.md
requestBody:
required: true
content:
multipart/form-data:
schema:
type: object
properties:
prompt:
type: string
description: 'Text description of the image to generate (required). Default demo: photorealistic portrait with legible "Tokyo" sign — pair with force_location=Tokyo.'
default: '{see_params_tab}'
model:
type: string
description: 'Resolution tier: basic (max 512×512), premium (max 1280×1280), ultra (max 2048×2048). Default: premium.'
enum:
- basic
- premium
- ultra
default: premium
width:
type: integer
description: Width in pixels (snapped to 16 px grid, clamped to model tier). Optional.
default: 896
minimum: 128
maximum: 2048
height:
type: integer
description: Height in pixels (snapped to 16 px grid, clamped to model tier). Optional.
default: 1152
minimum: 128
maximum: 2048
output:
type: string
description: 'Delivery mode: `inline` (binary HTTP body), `base64`, or `url`. When `output` is `inline` or `base64`, set `client_wait=true` (default) — otherwise HTTP 400 `CLIENT_WAIT_REQUIRED`.'
enum:
- inline
- base64
- url
default: inline
precompile_prompt:
type: string
description: true = AI prompt optimizer (default). false = use exact prompt (pair with fixed seed for reproducibility).
enum:
- 'true'
- 'false'
default: 'true'
inject_weather:
type: string
description: true = include local weather in prompt optimizer (default). false = omit weather context.
enum:
- 'true'
- 'false'
default: 'true'
force_location:
type: string
description: 'Optional. City/region name or IP. Default demo: Tokyo (pairs with the sign text in the default prompt).'
default: Tokyo
num_images:
type: integer
description: Number of images to generate in one job (1–8). Each image is processed as a separate unit in the job result.
default: 1
minimum: 1
maximum: 8
negative_prompt:
type: string
description: Optional. Elements to exclude (e.g. blurry, misspelled letters, distorted typography).
default: blurry, low quality, watermark, misspelled letters, distorted typography
seed:
type: integer
description: Optional. Fixed seed ≥ 0 for reproducibility; omit or -1 for random. Use with precompile_prompt=false.
default: -1
client_wait:
type: boolean
description: 'Connection hold: true (default) = API holds this HTTP request while the job runs, up to the dynamic pipeline timeout (priority, pages, pipeline type; minimum about 20s, infrastructure cap about 295s). Returns the finished result when ready, or HTTP 202 with job_id and poll_url if the hold is exceeded. false = immediate job_id.'
default: true
async_only:
type: boolean
description: 'Same as client_wait=false: immediate job_id — poll GET /job/get/{job_id} every 5–10s.'
default: false
processing_lane:
type: string
description: 'Start-SLA lane (wait-to-start guarantee, not completion). Values: no_sla (fair use ×1), sla_24h (×1.5), sla_12h (×2), sla_6h (×3), sla_1h (×4), instant (×5 interactive start). Prefer this over legacy numeric priority. If omitted: workspace default_processing_lane, else no_sla.'
enum:
- no_sla
- sla_24h
- sla_12h
- sla_6h
- sla_1h
- instant
required:
- prompt
application/x-www-form-urlencoded:
schema:
type: object
properties:
prompt:
type: string
description: 'Text description of the image to generate (required). Default demo: photorealistic portrait with legible "Tokyo" sign — pair with force_location=Tokyo.'
default: '{see_params_tab}'
model:
type: string
description: 'Resolution tier: basic (max 512×512), premium (max 1280×1280), ultra (max 2048×2048). Default: premium.'
enum:
- basic
- premium
- ultra
default: premium
width:
type: integer
description: Width in pixels (snapped to 16 px grid, clamped to model tier). Optional.
default: 896
minimum: 128
maximum: 2048
height:
type: integer
description: Height in pixels (snapped to 16 px grid, clamped to model tier). Optional.
default: 1152
minimum: 128
maximum: 2048
output:
type: string
description: 'Delivery mode: `inline` (binary HTTP body), `base64`, or `url`. When `output` is `inline` or `base64`, set `client_wait=true` (default) — otherwise HTTP 400 `CLIENT_WAIT_REQUIRED`.'
enum:
- inline
- base64
- url
default: inline
precompile_prompt:
type: string
description: true = AI prompt optimizer (default). false = use exact prompt (pair with fixed seed for reproducibility).
enum:
- 'true'
- 'false'
default: 'true'
inject_weather:
type: string
description: true = include local weather in prompt optimizer (default). false = omit weather context.
enum:
- 'true'
- 'false'
default: 'true'
force_location:
type: string
description: 'Optional. City/region name or IP. Default demo: Tokyo (pairs with the sign text in the default prompt).'
default: Tokyo
num_images:
type: integer
description: Number of images to generate in one job (1–8). Each image is processed as a separate unit in the job result.
default: 1
minimum: 1
maximum: 8
negative_prompt:
type: string
description: Optional. Elements to exclude (e.g. blurry, misspelled letters, distorted typography).
default: blurry, low quality, watermark, misspelled letters, distorted typography
seed:
type: integer
description: Optional. Fixed seed ≥ 0 for reproducibility; omit or -1 for random. Use with precompile_prompt=false.
default: -1
client_wait:
type: boolean
description: 'Connection hold: true (default) = API holds this HTTP request while the job runs, up to the dynamic pipeline timeout (priority, pages, pipeline type; minimum about 20s, infrastructure cap about 295s). Returns the finished result when ready, or HTTP 202 with job_id and poll_url if the hold is exceeded. false = immediate job_id.'
default: true
async_only:
type: boolean
description: 'Same as client_wait=false: immediate job_id — poll GET /job/get/{job_id} every 5–10s.'
default: false
processing_lane:
type: string
description: 'Start-SLA lane (wait-to-start guarantee, not completion). Values: no_sla (fair use ×1), sla_24h (×1.5), sla_12h (×2), sla_6h (×3), sla_1h (×4), instant (×5 interactive start). Prefer this over legacy numeric priority. If omitted: workspace default_processing_lane, else no_sla.'
enum:
- no_sla
- sla_24h
- sla_12h
- sla_6h
- sla_1h
- instant
required:
- prompt
responses:
'200':
description: Success
content:
application/json:
schema:
type: object
description: Bild-Generierung Premium (max 1280x1280)
properties:
status:
type: string
description: HTTP-Level Status
enum:
- success
- error
job_id:
type: string
pattern: ^poai-job_.*
message:
type: string
description: Human-readable status message
pipeline:
type: string
description: Name of the executed pipeline
operation:
type: string
description: Executed operation
processing_time:
type: string
description: 'Total processing time including queue (format: 123.45ms)'
result:
type: object
description: The actual processing result
properties:
status:
type: string
description: Job-Level Status
enum:
- completed
- failed
- timeout
message:
type: string
description: Pipeline-specific status message
duration_ms:
type: string
description: Pure pipeline processing time in ms
output_files:
type: object
description: Generated images as download URLs
additionalProperties:
type: string
format: uri
output:
type: object
description: Output
properties:
width:
type: number
height:
type: number
seed:
type: number
description: Seed used for reproducibility
steps:
type: number
guidance_scale:
type: number
required:
- status
- job_id
- result
'202':
$ref: '#/components/responses/JobAccepted'
4XX:
$ref: '#/components/responses/Error'
5XX:
$ref: '#/components/responses/Error'
/job/add/paperoffice_imagestudio___remove_bg:
post:
operationId: po-image-remove-background
summary: Remove background
tags:
- Media AI — Image Studio
description: 'Image remove background: POST /job/add/paperoffice_imagestudio___remove_bg with file upload. output_format webp|png. output inline|base64|url (Postman default inline). Optional segmentation profile via API (Not a public request...'
externalDocs:
url: https://api.paperoffice.ai/latest/docs/endpoints/po-image-remove-background.md
requestBody:
required: true
content:
multipart/form-data:
schema:
type: object
properties:
file:
type: string
format: binary
description: Image file to process (required). JPEG, PNG, WebP, GIF, BMP.
output_format:
type: string
description: 'Output format: webp (default, smaller) or png (lossless transparency).'
enum:
- webp
- png
default: webp
output:
type: string
description: 'Delivery mode: `inline` (binary HTTP body), `base64`, or `url`. When `output` is `inline` or `base64`, set `client_wait=true` (default) — otherwise HTTP 400 `CLIENT_WAIT_REQUIRED`.'
enum:
- inline
- base64
- url
default: inline
client_wait:
type: boolean
description: 'Connection hold: true (default) = API holds this HTTP request while the job runs, up to the dynamic pipeline timeout (priority, pages, pipeline type; minimum about 20s, infrastructure cap about 295s). Returns the finished result when ready, or HTTP 202 with job_id and poll_url if the hold is exceeded. false = immediate job_id.'
default: true
async_only:
type: boolean
description: 'Same as client_wait=false: immediate job_id — poll GET /job/get/{job_id} every 5–10s.'
default: false
processing_lane:
type: string
description: 'Start-SLA lane (wait-to-start guarantee, not completion). Values: no_sla (fair use ×1), sla_24h (×1.5), sla_12h (×2), sla_6h (×3), sla_1h (×4), instant (×5 interactive start). Prefer this over legacy numeric priority. If omitted: workspace default_processing_lane, else no_sla.'
enum:
- no_sla
- sla_24h
- sla_12h
- sla_6h
- sla_1h
- instant
required:
- file
application/x-www-form-urlencoded:
schema:
type: object
properties:
file:
type: string
format: binary
description: Image file to process (required). JPEG, PNG, WebP, GIF, BMP.
output_format:
type: string
description: 'Output format: webp (default, smaller) or png (lossless transparency).'
enum:
- webp
- png
default: webp
output:
type: string
description: 'Delivery mode: `inline` (binary HTTP body), `base64`, or `url`. When `output` is `inline` or `base64`, set `client_wait=true` (default) — otherwise HTTP 400 `CLIENT_WAIT_REQUIRED`.'
enum:
- inline
- base64
- url
default: inline
client_wait:
type: boolean
description: 'Connection hold: true (default) = API holds this HTTP request while the job runs, up to the dynamic pipeline timeout (priority, pages, pipeline type; minimum about 20s, infrastructure cap about 295s). Returns the finished result when ready, or HTTP 202 with job_id and poll_url if the hold is exceeded. false = immediate job_id.'
default: true
async_only:
type: boolean
description: 'Same as client_wait=false: immediate job_id — poll GET /job/get/{job_id} every 5–10s.'
default: false
processing_lane:
type: string
description: 'Start-SLA lane (wait-to-start guarantee, not completion). Values: no_sla (fair use ×1), sla_24h (×1.5), sla_12h (×2), sla_6h (×3), sla_1h (×4), instant (×5 interactive start). Prefer this over legacy numeric priority. If omitted: workspace default_processing_lane, else no_sla.'
enum:
- no_sla
- sla_24h
- sla_12h
- sla_6h
- sla_1h
- instant
required:
- file
responses:
'200':
description: Success
content:
application/json:
schema:
type: object
description: Hintergrund-Entfernung
properties:
status:
type: string
description: HTTP-Level Status
enum:
- success
- error
job_id:
type: string
pattern: ^poai-job_.*
message:
type: string
description: Human-readable status message
pipeline:
type: string
description: Name of the executed pipeline
operation:
type: string
description: Executed operation
processing_time:
type: string
description: 'Total processing time including queue (format: 123.45ms)'
result:
type: object
description: The actual processing result
properties:
status:
type: string
description: Job-Level Status
enum:
- completed
- failed
- timeout
message:
type: string
description: Pipeline-specific status message
duration_ms:
type: string
description: Pure pipeline processing time in ms
output_files:
type: object
description: Generated images as download URLs
additionalProperties:
type: string
format: uri
output:
type: object
description: Output
properties:
width:
type: number
height:
type: number
seed:
type: number
description: Seed used for reproducibility
steps:
type: number
guidance_scale:
type: number
required:
- status
- job_id
- result
'202':
$ref: '#/components/responses/JobAccepted'
4XX:
$ref: '#/components/responses/Error'
5XX:
$ref: '#/components/responses/Error'
components:
schemas:
JobAccepted:
type: object
description: The hold window ended while the job is still running. Poll `poll_url` or `GET /job/get/{job_id}` until `job_status` is `completed`, then read `result ?? job_result`.
properties:
status:
type: string
job_id:
type: string
poll_url:
type: string
max_wait_seconds:
type: number
client_wait:
type: boolean
required:
- job_id
additionalProperties: true
ErrorEnvelope:
type: object
properties:
status:
type: string
const: error
code:
type: string
message:
type: string
retryable:
type: boolean
required:
- status
- message
additionalProperties: true
responses:
Error:
description: Error
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorEnvelope'
JobAccepted:
description: Accepted — job continues in the background
content:
application/json:
schema:
$ref: '#/components/schemas/JobAccepted'
securitySchemes:
signingToken:
type: apiKey
in: query
name: token
description: Signer capability from the signing link. Protect it as a credential.
bearerAuth:
type: http
scheme: bearer
description: '`po_sk_` (secret key) or `po_ut_` (user token) server-side; `po_pk_` is public, scope/budget-capped and host-allowlisted. Origin can be forged outside browsers and is not caller authentication. Documentation routes under `/docs/` also answer without a Bearer (visitor tier).'
externalDocs:
description: Agent documentation (llms.txt)
url: https://api.paperoffice.ai/latest/docs/llms.txt