Skip to content
Console
Menu

Queues

Workflows

Getting Started

Authentication

KV Store

Generate an asset

Records the recipes as assets and generates the variants that are missing.

This method is not served on the public API. api.sylphx.com does not route this call: its backend is not deployed behind the public API, or does not implement the call. This page documents the contract. It is kept out of the sidebar and of search engines.

Records the recipes as assets and generates the variants that are missing. Each call is idempotent and works within a bounded time; call again until pending is 0.

Not available yet. Sylphx Generated Assets is declared in the registry but no backend serves it: every call answers 501 with the problem code UNIMPLEMENTED.

  • Path POST https://api.sylphx.com/v1/orgs/acme/projects/shop/envs/production/assets:generate
  • Scope assets:write
  • Effect write — a successful call changes state.
  • Collection assets

#Request

FieldTypeWhat it is
parentstringThe environment to generate in. Required.
recipesAssetRecipe[]The recipes the code declares; 1 to 1000. Required.
validate_onlyboolValidate the recipes and return the counts without writing or generating anything.

#AssetRecipe

FieldTypeWhat it is
kindAssetKindWhat kind of asset to make. Required. One of image, sfx, music, video, character, voice.
promptstringWhat to make, at most 8000 bytes. Empty only for ASSET_KIND_CHARACTER. Required.
localestringThe locale of the asset, a BCP 47 tag; empty for images.
character_idstringThe character this asset shows; only for ASSET_KIND_CHARACTER, encoded in the canonical text as id=.
paramsmap<string, string>Kind-specific parameters in canonical text form, such as "2", "1024x768", "true" or a 16-hex key. At most 16 pairs; keys are [a-z_] up to 32 characters, values up to 256 characters.
keystringThe key the caller computed, 16 lowercase hex characters. When it differs from the server's, the call is refused with INVALID_FIELD and the problem carries the server's canonical text, which catches encoder drift.

#Response

FieldTypeWhat it is
createdint32Assets new in this call.
unchangedint32Assets that already existed with the same key.
generatedint32Variants stored by this call.
pendingint32Variants still to generate; call again until it is 0.
failedint32Assets whose slots still fail after their attempts.
refusedint32Assets refused, for example by moderation.
unsupportedint32Assets of a kind the service does not generate yet.
assetsAssetSummary[]One summary per recipe, in the order sent.
usageUsageWhat this call used.

#AssetSummary

FieldTypeWhat it is
keystringThe logical key.
namestringThe asset's resource name.
stateAssetStateWhere the asset is in its life. Output only. One of pending, ready, approved, failed, refused, unsupported.
variants_readyint32How many variants are stored.
variants_wantedint32How many variants the recipe asks for.

#Usage

FieldTypeWhat it is
imagesint64Images stored by this call, the billed quantity.

#Errors

Every error arrives in the body Errors describes.

#Examples

curl -X POST "https://api.sylphx.com/v1/orgs/acme/projects/shop/envs/production/assets:generate" \
  -H "Authorization: Bearer $SYLPHX_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"recipes":[{"kind":"image","prompt":"…"}]}'