NativeAds AI Scene Forge Prompt Enhancements API
The Scene Forge Prompt Enhancements API from NativeAds AI — 2 operation(s) for scene forge prompt enhancements.
The Scene Forge Prompt Enhancements API from NativeAds AI — 2 operation(s) for scene forge prompt enhancements.
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/nativeads-ai:nativeads-ai-scene-forge-prompt-enhancements-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: NativeAds Headless Scene Forge Prompt Enhancements API
version: 1.0.0
description: 'The headless REST API for programmatic creative generation. Authenticate with a per-user API key (`Authorization: Bearer nak_...`). This reference lists only the endpoints an API key may call; generation endpoints are asynchronous (submit returns an id, then poll).'
license:
name: Commercial
url: https://www.nativeads.ai/
servers:
- url: https://creative-v1.nativeads.ai/v1
description: NativeAds API Server
security:
- BearerAuth: []
tags:
- name: Scene Forge Prompt Enhancements
paths:
/brands/{brandId}/scene-forge-prompt-enhancements:
post:
summary: Create prompt enhancement request
description: 'Request AI enhancement of a prompt for Scene Forge generation.
This is an asynchronous operation that returns 202 Accepted.
Poll the GET endpoint to check enhancement status and retrieve results.'
operationId: createPromptEnhancement
tags:
- Scene Forge Prompt Enhancements
security:
- BearerAuth: []
parameters:
- name: brandId
in: path
required: true
description: Brand context for the enhancement
schema:
type: string
format: uuid
example: 223e4567-e89b-12d3-a456-426614174000
requestBody:
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/PromptEnhancementInput'
example:
originalPrompt: A modern kitchen with stainless steel appliances
productAssetIds:
- 550e8400-e29b-41d4-a716-446655440000
environmentAssetId: 7c9e6679-7425-40de-944b-e07fc1f90ae7
responses:
'202':
description: Prompt enhancement request accepted for asynchronous processing
content:
application/json:
schema:
$ref: '#/components/schemas/PromptEnhancement'
'400':
description: Bad Request - Invalid input
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'401':
description: Unauthorized
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'403':
description: Forbidden
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'404':
description: Brand or referenced assets not found
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'429':
description: Too Many Requests - Rate limit exceeded
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'500':
description: Internal Server Error
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
/brands/{brandId}/scene-forge-prompt-enhancements/{id}:
get:
summary: Get prompt enhancement by ID
description: 'Retrieve prompt enhancement details and status. Use this endpoint to poll
for completion status after creating a prompt enhancement request.
Returns both originalPrompt and optimizedPrompt to support frontend Undo functionality.'
operationId: getPromptEnhancement
tags:
- Scene Forge Prompt Enhancements
security:
- BearerAuth: []
parameters:
- name: brandId
in: path
required: true
description: Brand context
schema:
type: string
format: uuid
example: 223e4567-e89b-12d3-a456-426614174000
- name: id
in: path
required: true
description: Prompt enhancement identifier
schema:
type: string
format: uuid
example: 123e4567-e89b-12d3-a456-426614174000
responses:
'200':
description: Prompt enhancement retrieved successfully
content:
application/json:
schema:
$ref: '#/components/schemas/PromptEnhancement'
'401':
description: Unauthorized
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'403':
description: Forbidden
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'404':
description: Prompt enhancement not found
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'429':
description: Too Many Requests - Rate limit exceeded
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'500':
description: Internal Server Error
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
components:
schemas:
GenerationWarning:
type: object
required:
- code
- message
- severity
properties:
code:
type: string
description: 'Machine-readable warning code. Reserved codes (NAT-1677):
HARDSPEC_DIMENSIONS, HARDSPEC_ASPECT_MISMATCH, HARDSPEC_FORMAT,
HARDSPEC_FILE_SIZE, HARDSPEC_TEXT_LIMIT, plus HARDSPEC_CANVAS_TOO_LARGE
(NAT-1805: the canvas is within min_size but too large to compress under
the partner''s max_file_size_bytes even at the 1bpp floor), plus the ML
moderation content code CONTENT_MODERATION (keywords/tone/promo-copy;
placeholder MODERATION_CONTENT_FLAGGED noted in the API model, exact slug
TBD with FE).
'
example: HARDSPEC_ASPECT_MISMATCH
message:
type: string
description: Human-readable warning message.
example: not compatible with chewy, use creative with chewy template to fix, or resize.
severity:
$ref: '#/components/schemas/WarningSeverity'
layerId:
type:
- string
- 'null'
description: 'Optional. For a per-layer compose warning, the template layer''s existing
required `id` (template_document schema.json:77). Null/omitted for doc-level
warnings and for raw image-generation warnings (no layer concept). Validation
results are NEVER stored inside the document JSON.
'
field:
type:
- string
- 'null'
description: Optional. The offending field on the layer (e.g. "text"). Omitted for doc-level warnings.
PromptEnhancementInput:
type: object
required:
- originalPrompt
properties:
originalPrompt:
type: string
minLength: 1
maxLength: 10000
description: Original prompt text to be enhanced. Up to 10000 characters; the enhanced result is at most 2500.
example: A modern kitchen with stainless steel appliances
productAssetIds:
type: array
items:
type: string
format: uuid
maxItems: 5
description: Array of product asset UUIDs (max 5 products)
example:
- 550e8400-e29b-41d4-a716-446655440000
environmentAssetId:
type:
- string
- 'null'
format: uuid
description: Optional environment asset UUID
example: 7c9e6679-7425-40de-944b-e07fc1f90ae7
useBrandDna:
type:
- boolean
- 'null'
description: Whether to apply Brand DNA to prompt enhancement (defaults to true if omitted)
example: true
transparentBackground:
type:
- boolean
- 'null'
description: 'The scene will render the subject on a transparent background (the Scene Forge
`transparentBackground` option), so the enhanced prompt describes the subject only, with no
setting. Cannot be combined with `environmentAssetId`. Omitted (or null) means false.
'
example: false
partner:
$ref: '#/components/schemas/Partner'
additionalProperties: false
GenerationStatus:
type: string
enum:
- pending
- processing
- completed
- failed
description: Status of parent generation entity (environment generation or scene forge)
example: pending
WarningSeverity:
type: string
description: 'Severity of a non-blocking generation warning. `error` is the legacy Walmart
hardspec validation default; `warning` is the softer partner-compatibility signal.
'
enum:
- warning
- error
x-enum-varnames:
- WARNING_SEVERITY_WARNING
- WARNING_SEVERITY_ERROR
example: warning
ErrorError:
type: object
required:
- code
- message
properties:
code:
type: string
example: INVALID_REQUEST
message:
type: string
example: Invalid input data provided
details:
description: "Additional error context (optional, can be object or array). Absent on\nmost errors; the message is the only guaranteed human-readable field.\n\nUpload rejections populate it, because a client needs to act on the\nanswer rather than parse it. `POST /v1/assets/initiate-upload` and\n`POST /v1/assets/confirm-upload` return:\n\n- `reason` — `unsupported_declared_type` when the declared MIME type is\n not accepted, or `unsupported_file_contents` when the uploaded bytes\n are a different format than declared (an AVIF saved with a `.jpg`\n name, say). Only confirm-upload can report the second: it is the\n first point that reads the real bytes.\n- `declaredType` — the MIME type the client sent.\n- `detectedFormat` — the format the bytes actually are, on\n `unsupported_file_contents` only.\n- `supportedFormats` — every format an upload may be.\n- `retryable` — `false` on both, meaning the same bytes will be\n rejected again. Clients must not retry these.\n"
example:
reason: unsupported_file_contents
declaredType: image/jpeg
detectedFormat: AVIF
retryable: false
supportedFormats:
- DOC
- DOCX
- GIF
- JPEG
- MP4
- PDF
- PNG
- QuickTime
- TIFF
Partner:
type: string
description: Partner (retail-media network) slug. `default` means no partner.
enum:
- default
- walmart
- chewy
- instacart
x-enum-varnames:
- PARTNER_DEFAULT
- PARTNER_WALMART
- PARTNER_CHEWY
- PARTNER_INSTACART
example: default
Error:
description: Standard error response
type: object
required:
- error
- requestId
properties:
error:
$ref: '#/components/schemas/ErrorError'
requestId:
type: string
format: uuid
description: Unique identifier for the request, useful for tracing.
PromptEnhancement:
type: object
required:
- promptEnhancementId
- brandId
- originalPrompt
- useBrandDna
- transparentBackground
- status
- createdAt
- updatedAt
properties:
promptEnhancementId:
type: string
format: uuid
readOnly: true
description: Unique identifier for the prompt enhancement
example: 123e4567-e89b-12d3-a456-426614174000
brandId:
type: string
format: uuid
readOnly: true
description: Brand context for the enhancement
example: 223e4567-e89b-12d3-a456-426614174000
originalPrompt:
type: string
description: Original prompt text submitted for enhancement
example: A modern kitchen with stainless steel appliances
optimizedPrompt:
type:
- string
- 'null'
description: AI-enhanced prompt (available when status is completed)
example: A sleek, contemporary kitchen featuring premium stainless steel appliances, marble countertops, and soft natural lighting from large windows
theme:
type:
- string
- 'null'
description: AI-generated theme for the scene (available when status is completed)
example: Modern Elegance
status:
$ref: '#/components/schemas/GenerationStatus'
errorCode:
type:
- string
- 'null'
description: Error code if enhancement failed
example: ENHANCEMENT_FAILED
errorMessage:
type:
- string
- 'null'
description: Human-readable error message if enhancement failed
example: Failed to enhance prompt
createdAt:
type: string
format: date-time
readOnly: true
description: Creation timestamp
example: '2024-01-01T00:00:00Z'
updatedAt:
type: string
format: date-time
readOnly: true
description: Last update timestamp
example: '2024-01-01T00:00:00Z'
completedAt:
type:
- string
- 'null'
format: date-time
readOnly: true
description: Completion timestamp (null if not completed)
example: '2024-01-01T00:00:30Z'
failedAt:
type:
- string
- 'null'
format: date-time
readOnly: true
description: Failure timestamp (null if not failed)
example: '2024-01-01T00:00:30Z'
useBrandDna:
type: boolean
description: Whether Brand DNA was applied to this prompt enhancement
example: true
transparentBackground:
type: boolean
description: Whether the prompt was enhanced for a transparent-background scene (subject only, no setting)
example: false
partner:
$ref: '#/components/schemas/Partner'
warnings:
type:
- array
- 'null'
description: 'Non-blocking ML moderation content warnings (NAT-1677). Empty/absent when
the enhanced prompt raises no content flags. DISTINCT from hard errors
(see `errorCode`/`errorMessage`) — a real failure still fails via error_type.
'
items:
$ref: '#/components/schemas/GenerationWarning'
securitySchemes:
BearerAuth:
type: http
scheme: bearer
bearerFormat: JWT
description: JWT token for authentication.