Skip to main content
This alpha V3 MCP contract is available only to enrolled Buyer Accounts. It adds buyer-owned engine discovery and connection setup, campaign- and advertiser-scoped session reads, durable session saves, and explicit generation or refinement. Provider qualification and the end-to-end buyer journey remain separate work.
Creative Engines gates generation and refinement, not assembly. Any authorized buyer can use the Creative Library to assemble a draft in a campaign Creative Session by choosing a format, filling slots, adding a name and click-through URL, and saving. Save draft does not create a Creative; Save to Library makes one complete ad in the advertiser’s Library from the saved slots (see Save an ad). When Creative Engines is not enabled, the composer leaves those assembly controls available and asks your Apostra account team to enable it for the Buyer Account. Your Apostra account team enables Creative Engines for enrolled Buyer Accounts. Contact them to ask about enrollment. For eligible Buyer Accounts in the buyer beta, and accounts already enrolled in the Apostra-funded preview, Apostra can generate images, hosted video, and hosted audio without setup. Creative Engines access and an available funded engine are still required. Apostra does not show or ask you to choose its paid engines. When a buyer has an active connected engine for the requested media kind, Apostra uses that connection first; otherwise it uses the eligible Apostra-funded engine. This preview has no retail IU charge. It is limited to 50 provider generation requests per enrolled account per UTC day and 500 globally per UTC day. An eligible funded media kind can also have separate account and global daily limits; a request that reaches any applicable limit is refused until the next UTC day. An image draft without an explicit direction uses three distinct composition directions only with the Apostra-funded preview engine, and only when partial_success is not false. A customer-key image engine keeps one direction unless the request supplies its own variant_axis; an explicit axis keeps its supplied number of directions. Refining a named parent is also one direction. Audio, video and every other non-preview branch stay one direction by default. The response returns one leaf per direction, and each preview leaf uses one daily-cap unit. For an engine-less draft, Apostra uses the buyer’s compatible active connection first, including a connected voice provider that holds their voice clones. If there is no compatible connection, it uses the Apostra-funded engine for the kind when the account is eligible. Otherwise, the save says whether an image, video, or audio connection is missing and directs the buyer to Settings → Connections. A failed customer-key request never switches a generation already bound to that connection to the preview credential. When Apostra picks the funded engine for an image, it picks one that works from your reference photos: the brand’s product and logo images set the look of the result. An engine that cannot take reference photos is used only when it is the only funded image engine. If the engine Apostra picked does not answer within 45 seconds or fails, the same image is made by the next funded image engine, at most twice, and it still uses one daily-cap unit and one leaf. The variant then carries engine_fallback with requested_provider, used_provider, reason (timeout or provider_error) and a message such as “Gemini made this image because fal.ai did not answer in time.” The generate_variants text repeats it. The output’s rights provenance names the engine that made it. A failure that would be the same on any engine, such as a refused request, is not retried, and a customer-key engine never falls back to a funded one. An engine that submits its work and finishes it later is never used as a fallback. When Apostra’s engine is one of those and another funded engine is available, Apostra waits for its task for the same 45 seconds before falling back; when it is the only funded image engine, the task is not waited for and a stall is reported as a failed generation after 15 minutes. For an image draft, set request.variant_count to an integer from 1 through 8 when you want a specific number of directions without writing each one. The service creates distinct composition directions, adding lighting and mood variation after the first three. An explicit request.variant_axis.values always takes precedence. Customer-key engines honour variant_count too. For the Apostra-funded preview, the service checks that the daily account and global caps currently have room for the whole set before any provider request is sent; if not, it returns a cap error and creates no partial set. That check does not reserve capacity: each direction is reserved individually immediately before its provider request. Concurrent preview use can therefore leave an admitted batch with fewer generated directions than requested, but a provider request is never sent without its own reserved cap unit. variant_count cannot be combined with partial_success: false: that atomic single-image mode remains one generation. Complete ad concepts differ: they make three concepts by default with any engine, and a limit reached part way keeps the concepts already made. variant_count makes camera framings and lighting, not different subjects. When the brief names its own scenes or concepts, such as five Thanksgiving moments for a book, send each one as an entry of request.variant_axis.values with request.variant_axis.dimension set to scene, and leave variant_count out. Apostra makes one variant per entry. Each variant is named by its scene, and its generation request carries the whole brief with its own scene marked as the only one to show, so the other scenes in the brief are left out of that image. Attached reference images set the look and the product for every variant, never the setting. Apostra does not read scenes out of the brief text; the list you send is the list it makes. The dimensions scene, concept, theme and setting mark the values as what each image shows. A dimension of composition marks them as camera framings, the same as the directions Apostra picks when you name none, and any other dimension, such as style, varies how each image looks without changing its subject. Omit engine unless the buyer explicitly asks to use their own connected engine. Put the buyer’s exact visual request in request.creative_brief.prompt. If the buyer asks for a specific number of variants, put that number in request.variant_count. If the buyer names the scenes or concepts they want, put one in each request.variant_axis.values entry instead. For the first 24 hours after a variant_count release, the Creative Engines on-call owner reviews preview usage and provider-dispatch records every four hours. The check passes when every provider dispatch has its own daily-cap unit, and a refused precheck has no provider dispatch. An admitted batch may contain fewer provider dispatches than planned during concurrent use. After six clean checks the manual review ends. A mismatch or unexplained cap error pauses the Apostra preview binding while the owner investigates and rolls back the release if needed.

Bring your own provider connection

Use Settings → Connections when the buyer needs their own provider account, such as a voice clone. Complete the secure setup there; never put a provider token into tool arguments or chat. A connection is the buyer’s authorization to a provider and can have its own provider accounts and advertiser mappings. The service uses a compatible active connection automatically when a draft does not name an engine. In Apostra, select Connections, then Creative tools. This section shows providers for which your account needs to connect its own credential. A provider is omitted only while your account is currently covered by a configured, Apostra-funded preview. Existing buyer credentials remain listed so you can manage or disconnect them. Availability depends on your enrolled preview and provider qualification. In an MCP Apps host, call open_creative_engines_page to open the Creative Engines Page. You can ask Apostra to find a registered provider and open its connection setup there; you start the secure connection yourself.

Discover an engine

Call search with kind: "creative_engine". Use query to match an engine or provider name, filter.ids for up to 50 exact engine IDs, and limit plus the returned cursor to page results. IDs are positive integer strings.
Results contain one record per engine, including its name, description, provider, authentication modes and your existing grants. The capabilities declaration lists modalities, transformer IDs, supported format IDs and build/preview support when the registered adapter supplies them. capabilities.supportsAccountDiscovery says whether the engine’s connections hold provider accounts: true for AudioStack and ElevenLabs, whose organization or workspace you select and map advertisers to, and false for engines that work without choosing an account, such as OpenAI. get with the same kind and an engine id returns one record. Declarations describe support; they are not a live provider health check or proof of access to every model. Grant status describes your connection state. pricing: null means this read has not obtained a quote, not that generation is free. The current supportedFormatIds are adapter format identifiers, not canonical AdCP format declarations or executable capability IDs. Discovery currently covers registered Creative Engines visible to the active buyer. Arbitrary external MCP endpoints cannot be added through this preview.

Paused engines

An engine’s operator can pause it to hold new business. While an engine is paused:
  • It is hidden from search, get and the Creative Engines Page, as if it were not listed.
  • save_connection cannot begin or renew authorization for it.
  • save_creative_session, generate_variants and refinement against it return the SERVICE_UNAVAILABLE error code with details.reason: "engine_paused" and details.retryable: true. Try again later or choose another engine.
Generation already sent to the provider finishes, and you can still read its result. If a batch of variants was only partly sent when the pause started, the variants not yet sent are refused. A pause removes no connections: disconnect, account refresh, account selection and advertiser mapping keep working, and your grants still appear when you list creative connections. When the operator resumes the engine it returns to discovery and your existing connections work again without reconnecting.

Authorize and manage a connection

Use open_creative_engines_page to open Creative Engines in an MCP Apps host. Its Creative tools section supports secure connection repair, account selection, advertiser mapping and disconnect for providers that require your credential. It does not expose provider credentials, accept an arbitrary MCP URL, quote a price or start generation. Engines currently funded for your account do not appear as new connection targets. Call save_connection with exactly one change. To begin authorization:
An engine is also an Account, so target names the engine by its Account id, engineAccountId. A target.id for a creative engine is refused with a VALIDATION_ERROR that names engineAccountId. It is a different number from the engine’s own id: never copy an engine id into engineAccountId. Read engineAccountId from the engine on any read that returns one, as in the list below. An Account id that owns no live engine, or that owns something other than a creative engine, is refused with a VALIDATION_ERROR. An engine’s own id stays its Storefront id, and every reference to an engine uses its Account id. So search and get with kind: "creative_engine" return each engine with its id and engineAccountId beside it, and every other read names the engine by engineAccountId alone:
  • search and get with kind: "connection" for a creative engine grant, on the grant’s target and its engine, which carry no id;
  • a Creative Session’s engine, as {engineAccountId, connectionId};
  • the result of open_creative_engines_page, which names the engine by engineAccountId and no longer returns engineId.
The same field appears in the text of these results. An engine that is not found has no Account id to return, so missingIds is unchanged. The result contains a secure authorization handoff. Open it to complete OAuth or enter a bearer credential, according to the engine’s supported modes. Never put a provider token into tool arguments. The tool does not return token values. The browser handoff identifies the registered provider. In the OpenAI customer-key form, it asks for an OpenAI API key and links to the official OpenAI API key dashboard. This is an explicit customer-key connection only; it does not configure a platform-managed credential or authorize generation spending. When you submit the key, Apostra checks it once with OpenAI by listing models. If OpenAI rejects the key (an expired or revoked key), the form refuses it with a message that names the key, and nothing is saved, so you can paste a working key. If OpenAI cannot be reached or answers with an error that is not about the key, Apostra saves the key anyway and the key is checked again when you generate. To list your creative grants:
Read a grant with get({"kind":"connection","id":"77"}). It includes safe credential status, selected account, advertiser mappings and a bounded account list. Use connectionAccountsOffset with the returned accountsPage.nextOffset for another account page. Provider metadata and secrets are omitted. Use the existing save_connection fields with connectionId to reconnect (authorization), refresh accounts (refreshAccounts: true), select a provider account (selectedAccountId), map an advertiser (advertiserMapping), or disconnect (state: "removed"). A connection cannot change its target. For an engine whose supportsAccountDiscovery is false, refreshAccounts is refused with a validation error that says the engine has no provider accounts to refresh; there is no account to select or map an advertiser to, and the connection needs none. Disconnect retries remain available for owned grants after catalog delisting or preview enrollment is removed. Creative connections do not accept seller selection, advertiser activation, media billing, buying policy or Enhanced Reporting. Signup-restricted credentials cannot use the creative preview. AudioStack and ElevenLabs require an advertiser mapping before generation. This selects the provider organization or workspace that pays for the request. Use advertiserMapping: {state: "mapped", advertiserId: "42", accountId: "88"} with the connection ID. Read accountMappings to find the link ID for unmapping; use connectionMappingsOffset with accountMappingsPage.nextOffset for another mapping page. Replacing the provider key requires remapping the advertiser. For a voice draft, include the exact spoken words in straight or curly quotation marks in request.creative_brief.prompt, or provide a creative_manifest.assets.script text asset. A tone or duration instruction by itself is not voice copy. When preparing a draft, write a short script in quotes from confirmed buyer intent, or ask the buyer for the words to speak before you call generate_variants.

Required disclosures

A brief can name legal text the creative must carry, in AdCP’s compliance.required_disclosures. A brand can also publish disclaimers in its own brand.json. Each one counts as required unless it says required: false, and it applies to every creative for that brand, with or without a brief. Apostra’s engines take a brand’s disclaimers only from the brand itself. In a Creative Session they come from the advertiser’s brand profile, when the account has one. Otherwise they come from the brand’s registry record, and only when the brand published that record: its own brand.json, or one its verified owner registered. Disclaimers in a community record or an enrichment are never used. Apostra’s engines follow AdCP: each disclosure goes into the creative itself, or the request is refused before anything is generated or charged. This holds for the image, video and voice an engine generates. The text concepts the Creative composer writes follow a different rule, described under Complete ad concepts.
  • Voice creatives speak the disclosure in the voiceover, and the script asset carries its exact words. Position pre_roll, or persistence initial, is spoken first; persistence flexible is spoken last. A disclosure with no persistence, which includes every brand disclaimer, is spoken first, because AdCP defaults to the strictest persistence the format supports. Copy written from the brief is shortened to leave room for it.
  • Image and video creatives carry the disclosure as text in the creative’s disclaimer slot, never in the pixels: image generation does not draw fine print reliably and video generation cannot draw text. Both formats declare the footer position with flexible persistence, so the engine promises the text is present and never how long it is shown. A disclosure with no position is written there too, which includes every brand disclaimer. Several are joined, in the order required, into one text asset. A disclosure that asks for another position, for persistence initial or continuous, or for a min_duration_ms is refused. Where the creative goes, the destination shows the text or refuses the creative: see the next point.
  • Creatives you sync yourself. A creative that carries a disclaimer text asset (or one of AdCP’s aliases for it: legal_text, fine_print, legal_disclaimer) is refused, creative by creative, by every ad platform adapter. No ad platform shows a separate disclaimer yet, so the legal copy would be dropped. The sync result marks the creative failed with COMPLIANCE_UNSATISFIED and says why, and the other creatives in the same sync go through. Image and video creatives in your Library have an optional disclaimer text slot for this copy, and the Library stores the text. Storing it does not mean a destination shows it: no ad platform shows it yet, so a creative that carries it is refused wherever it is sent to one.
  • Previews. A preview of an image or video creative shows its disclaimer as text under the media. A preview drawn as an ad platform says the platform cannot show it and would refuse the creative, because no ad platform shows it yet.
  • A voice disclosure is also refused when it asks for persistence continuous, a position other than audio or pre_roll, a min_duration_ms longer than the time it takes to speak, or more speaking time than the slot has.
An engine called through AdCP’s build_creative refuses with COMPLIANCE_UNSATISFIED and recovery correctable. field names the disclosure, for example creative_brief.compliance.required_disclosures[0] or brand.disclaimers[0], and details.reason says why it cannot be placed. In a Creative Session, generate_variants is refused the same way, before any provider call: the error carries the same COMPLIANCE_UNSATISFIED code, field and details (disclosure_text, position and reason). Nothing was dispatched, so the session records the variant as not dispatched with no provider charge, shows creative_compliance_unsatisfied as its failureReason, and does not count it against a daily preview limit. To proceed, remove the requirement or change the disclosure to one the format can place. A refinement keeps every disclosure of the creative it refines: a refinement brief can add one, and a message cannot remove one.

Generation and funding

This alpha provides discovery, setup, session reads and Creative Session operations. save_creative_session saves a brief, selected output, approval or finalisation, and save_creative with fromCreativeSessionOutput saves an exact approved output into a reusable Creative Asset revision. Neither starts generation. generate_variants explicitly prepares and executes one saved session revision. These are generation operations and require Creative Engines. Do not choose a Apostra-funded engine: the service resolves the compatible buyer connection or funded engine for the media kind when it saves the draft. A connection alone does not authorize spending. The Apostra-funded preview is the limited exception described above; its platform-managed engines are paid by Apostra rather than the customer’s provider account. The operations do not provide a request estimate or turn an unknown catalog price into a quote. For accounts and clients with the existing V2 generation tools, use the generative creative workflow. Use the generation workflow’s applicable funding and price information before requesting paid work. The current catalog’s pricing: null cannot be used as a quote. Customer-key eligibility and provider account requirements still apply; see provider setup. A failed customer-key request does not authorize switching to a platform-funded request. To make new options in the look of an ad you already have, save the draft with that ad’s Library image as a reference. Send its asset_id in draft.assets[] with role: "reference" and leave out url: Apostra reads the image from the same advertiser’s Library. A draft takes at most ten Library images sent this way, counting source_asset. A creative’s image carries the Library asset’s id as sourceAssetId, and search with kind: "creative_asset" lists an advertiser’s Library images. The options match the ad’s look; they are new ads, not copies. An id that is not in that advertiser’s Library, that is not an image, or that is over 20 MB is refused by name and nothing is saved. A draft’s reference images may total at most 60 MB. A video cannot be a reference for an image session: describe its look and message in the brief. During iteration, preserve the brief, reference assets, target format and parent variant. Retain returned session and task IDs so an interrupted request can resume without submitting another build. Review the exact output that will be finalized, then read back the saved creative. Content acceptance remains separate from seller review and campaign launch. Video generation, and a provider build expected to run for longer, returns a submitted leaf promptly instead of keeping the tool call open. Use the exact poll get request returned by generate_variants; it refreshes the same session and returns the completed variant when ready. Do not submit another generation action while that leaf is still generating. A task that later fails becomes a terminal generation failure rather than a fresh provider request. generate_variants also stops waiting at 40 seconds, because most MCP clients give up on a tool call at about 60 seconds and a client that gave up would read the call as failed and send it again. A generation can take up to about two minutes. When the providers have not finished by then, the call still succeeds: its leaves show pending or dispatching, no poll is returned (nothing has a provider task yet), and the text says generation is still running. The work carries on. Read the session with get (kind: "creative_session") or open_variant_gallery to see the variants as they finish, and do not send a new action while it runs; a new actionKey is refused as still running, and the same actionKey returns the same state. A generation that never reports back does not read as running forever. If a leaf is still dispatching fifteen minutes after it started (the process that was running it was lost), the next read of the session shows it as uncertain: Apostra does not retry it, because the provider may have accepted the work and a charge may have occurred. Send a new action to generate again. When generation starts in a conversation turn, that conversation can report when variants are ready and tells you how to ask for the gallery. Generation started directly from a Library or widget does not receive a conversation notice. When a poll is returned, use it to check the submitted task. A completed provider receipt without usable variants does not produce a ready notice; background checks stop after 24 hours.

How long generation takes

Generating images usually takes about a minute for a set of three. Complete ad concepts take longer, up to about two minutes, because one call writes the copy for every concept before each concept’s image is made. A generation that is still running has not failed: read the session again with get and kind: "creative_session", or open the gallery, until the variants are there. Do not start the same generation again, which spends the daily limit a second time.

Complete ad concepts

Complete concepts are in beta. Your Apostra account team enables them for enrolled Buyer Accounts.
For a format with one image slot and text slots, starting with the Meta Feed Image Ad (format_option_ref facebook.com / meta_image_feed), the first generate_variants action makes complete concepts instead of separate parts. Each concept is one generated image and every text slot written for that image: primary text, headline, description and call to action for a Meta post.
  • How many. Three concepts by default. Set request.variant_count from 1 through 8 for another number, or give one direction per concept in request.variant_axis.values, up to 8. When the directions are scenes the buyer named, set request.variant_axis.dimension to scene: the image then shows that scene, where a composition direction only sets the camera framing.
  • The link. A Meta post needs a click-through URL. Send it as request.click_url. When you send none, Apostra uses the website in the advertiser’s brand profile, and a draft with neither is refused by name. An assistant with no link from you sends the advertiser’s brand domain, such as https://example.com, and says which link it used. A Facebook Page link is not a click-through URL.
  • The size. Leave the size out. The format makes its own Meta feed size, 1080×1350 unless the campaign’s placement calls for another of Meta’s feed ratios (see Image sizes).
  • One direction per concept. Every concept has a direction. Its copy and its image are written from the same direction, so the text fits the picture it is shown with.
  • One copy call. One language-model call writes the text of every concept together, so the concepts differ from each other. The writer reads the brief (request.creative_brief.prompt and the objective), the advertiser’s brand profile (voice, tagline, dos and don’ts) and the format’s slot limits. The brief and brand text are sent to a language-model provider to write the copy.
  • In the advertiser’s brand voice. Every path that writes copy reads the advertiser’s brand profile: the concepts, and the Creative composer when it generates or rewrites a text slot. The profile is the one on the advertiser’s Brand tab, described in Brand Studio. An advertiser with no profile gets copy written without a brand voice, as before, and the composer’s copy result says so in notes. When the profile exists but could not be read just then, no copy is written and the call fails with a retryable SERVICE_UNAVAILABLE, because the banned terms and required disclaimers are unknown. Send the same call again.
  • Banned terms are never used. A term on the advertiser’s banned list is matched as a whole word or phrase, in any capitalisation, so “binge” is caught in “Binge-watch” and not in “bingeing”. Copy that uses one is rewritten once and otherwise refused; it is never edited. Text you supply yourself, and a required disclaimer, are not checked against the list.
  • Required disclaimers are included. A disclaimer the brand marks required is placed word for word in the format’s roomiest free-text slot, and copy that leaves it out is rewritten once. When no slot has room for it beside the copy (30 characters are kept free for the copy), it is left out of every concept and the composer’s copy result says how many required disclaimers were left out and why. The call still succeeds, unlike a disclosure sent to an engine, so read notes and add each one yourself before you use the concept. A disclaimer is never shortened or silently dropped. A profile with more than 20 required disclaimers, a required disclaimer over 2,000 characters, or a banned term over 80 characters is refused with a validation error, because the copy writer cannot enforce it in full.
  • Your text stays as written. Text you supply for a slot is copied unchanged into every concept, and the writer writes only the other slots. When you supply every text slot, no copy is written and each concept differs only in its image.
  • Checked, never cut. Apostra measures every slot against the format’s limits. Copy over a limit is rewritten once and otherwise refused; it is never shortened. A call to action comes from the format’s allowed list. The copy never contains a link; the click-through URL comes from your request or the brand’s website.
Each concept is an ordinary variant of the session. Read it with get and kind: "creative_session": each entry in variants has its direction, its image preview and text_assets, the text slots as AdCP text assets keyed by the format’s asset ID:
Approving a concept approves its text together with its image. That approval is your own content check, not seller review. To refine a concept, send generate_variants with variantAction: "feedback" and that concept as parentVariantId, as described in Read a creative session. The refined variant keeps the concept’s text; only its image is regenerated. When generate_variants writes composer copy (variantAction: "copy"), its result carries an optional notes list: plain sentences, with counts and reasons only and never brand or disclaimer text, saying that the copy was written without a brand voice or that required disclaimers were left out. The same sentences are in the result’s text. notes is absent when there is nothing to say.

Choose a concept in the composer

Choosing a concept is part of the complete-concepts beta. It is available only to Buyer Accounts your Apostra account team has enrolled in it. Other accounts do not see these controls, and the tools refuse the request.
In the Creative composer, Generate on a Meta image post with no copy written yet makes the concepts and opens them in the gallery. Each concept card shows Apostra’s labelled approximation of the whole ad. Where Meta’s own preview is available, on a campaign’s draft or an advertiser’s, you can open one card at a time for it, as described in Creative previews. Use this concept fills the composer draft: the concept’s image goes in the image slot and its text in every text slot, each marked Selected concept. Text you wrote yourself keeps its own mark. The choice is the session’s selected variant, so get with kind: "creative_session" returns it as selected_variant_id. Choosing approves nothing; you approve the finished ad in the composer. You can choose a concept on a campaign’s draft or on an advertiser’s draft with no campaign. After you choose a concept:
  • Edit the ad. Changes to slot text, images and the click-through URL are saved. The brief, the format, the concept directions and the draft’s name stay as they were when the concepts were generated; start a new draft to change them.
  • Rewrite one slot. Generate on a text slot rewrites only that slot, with the chosen concept’s direction and your other slots as context. It replaces text you wrote only when you choose Generate on that slot, and it uses one copy call from the daily copy limit. It follows the advertiser’s brand voice, banned terms and required disclaimers as the concepts do.
  • Replace the image. Pick a Library file to replace the concept’s image.
A format with several required image slots keeps the existing generation flow.

Limits and partial results

During the preview, copy is free. A Generate action uses one copy call, and copy has its own daily limit: 100 calls per account and 1,000 across all accounts per UTC day. Each concept’s image uses one unit of the image limits described above.
  • Copy limit reached. No concept is made and no image is generated. The error names the limit and the time it resets, the next UTC midnight.
  • Copy could not be written. If the language model fails or does not answer in time, no image is generated and the error says why. Sending the call again starts over and uses another copy call. While a call’s copy is still being written, repeating that same call is refused and asks you to try again in a minute, and a new action on the session is refused as still running.
  • Image limit already reached. No copy is written and no concept is made. The error names the limit and the time it resets.
  • Image limit reached part way. Apostra keeps the concepts whose images were made and stops the rest. The session’s notices says how many of the requested concepts are ready and when the limit resets. A concept without its image is never shown as a finished ad. If no image could be started, the action returns the same message as an error.
  • Finish the rest. After the reset, repeat the same generate_variants call with the same actionKey and expectedRevision. Each waiting concept’s copy is already saved, so the retry generates their images and writes no new copy. A new action on the session leaves the waiting concepts unfinished.

When an engine is ready for buyers

A Creative Engine is ready for buyers when it is listed, not paused and not archived. Nothing else is required. Unlike a sales storefront, an engine does not need inventory, products, a brand domain or a settlement currency, because it generates creative and does not sell media. An engine never appears in media-buying (sales) discovery, and it is never admitted to a media buy. Use search with kind: "creative_engine" to find it; get_products and seller connections list sales storefronts only.

Existing seller integrations

search({"kind":"connection"}) continues to list seller grants by default. Seller grants carry sellerAccountId, the seller’s Account id. Send sellerAccountId, or target: {kind: "seller", sellerAccountId}, to save_connection. sellerId and a seller target.id are refused with an error that names sellerAccountId. See Naming a seller by Account id. You can continue making creative directly with a provider and bring that creative into Apostra. This alpha does not change that workflow or start a generation job without an explicit generate_variants call.

Read a creative session

A creative session holds work in progress: the brief, plan, variants, evaluation, selection and any finalized creative. Reading it does not start generation. Creative sessions are where generated variants live; they are separate from product variants in a catalog and from saved Library creatives. To find a session by name, list the scope below and match the session title in the results; text queries are not supported. Then open its variants with open_variant_gallery. List sessions within exactly one campaign or advertiser Library:
For a Library session, use filter.advertiserId instead:
Use filter.status to choose drafting, refining, evaluating or finalized. The limit is at most 100. Each result identifies its scope with either a campaignId or an advertiserId, alongside its session ID, title, status and revision. When nextCursor is present, pass it as cursor with the same campaign-or-advertiser scope and status filter. Each page reflects current state; the list does not promise a fixed snapshot or a total count. Text queries and other filters are not supported for sessions. Open a session by ID alone. Apostra resolves its saved owner and checks your current access again:
You may also assert the owner from the search result with sourceId for a campaign or advertiserId for a Library session. The object includes its persisted revision, plan, variants and evaluation.
The read returns the selected variant and the latest session history first. It does not return inline asset data. If a session has more history or detail than one tool response can carry, truncated: true and omitted identify the bounded fields; use the existing V2 workflow for the complete durable record. When the session has a saved engine connection, engine contains its engineAccountId and connectionId. Credential material is not included. A draft names its engine the same way: send engine as {engineAccountId, connectionId}, so the engine object from a read can be sent back unchanged. A draft that sends engine.engineId is refused with a VALIDATION_ERROR that names engine.engineAccountId. Hosted image, audio and video plans can identify their format with format_kind (image, audio_hosted or video_hosted) and params, without an agent URL. Image dimensions use params.width and params.height; an exact audio duration uses params.duration_ms_exact. The declared modality must match the selected engine. A canonical declaration cannot also specify a legacy target format. Explicit legacy format requests retain their existing compatibility path. Video on the Veo engine is generated by Google’s Gemini Omni Flash model. The requested video duration is a target rather than an exact output length; the generated media reports its actual duration when it is available. When you do not set config.resolution, video generation uses the requested height or short side: 360 pixels or less selects 360p, 1080 pixels or more selects 1080p, and 2160 pixels or more selects 4k. Other sizes select 720p. Set config.resolution to 360p, 720p, 1080p, or 4k to choose a different output resolution explicitly. Use the canonical fields directly in a draft request. For an image draft:
Do not put an agent_url in this declaration. It is a legacy-format field. For common image requests, aspect_ratio is also accepted either beside format_kind or inside params; it is saved as canonical dimensions. For example, "9:16" becomes { "width": 1080, "height": 1920 }. Use explicit dimensions for a ratio that is not supported. A draft save rejects an unmappable ratio before it can be generated. An image draft that names neither dimensions nor an aspect ratio is planned as a square 1024 by 1024 image, and the saved plan’s params shows that size. Every funded image engine accepts it. A draft that names only a width or only a height keeps what it named, and its generation is refused until it names both. Drafts saved before this default existed keep their saved request and are refused the same way; save a new draft with a size to generate from them. When preparing image placement renders, the session uses each placement’s resolved dimensions. A placement without dimensions returns a warning instead of generating at the original image size. These renders still need the applicable seller compatibility checks before delivery. Session reads do not support include. Both reads require current access to the campaign and advertiser, and expired sessions are unavailable. save_creative_session saves a campaign or advertiser brief and locked references, selects or approves one exact output, or finalises that approved output. Saving does not start generation. generate_variants is the separate explicit action for one saved revision. To save an approved output into a reusable Creative Asset revision, call save_creative with fromCreativeSessionOutput. Reuse its actionKey only for an identical retry; name the parent output and feedback when refining. Both operations require the Creative Engines account capability; the service saves a compatible connection or funded binding with the draft. Generation can remain submitted or uncertain while its original task or receipt is recovered; it never silently submits a replacement request. A session runs one generation action at a time. To refine a variant after a generation, send variantAction: "feedback" with a new actionKey, the session’s current expectedRevision, the variant as parentVariantId and your feedback. The refined variant records its parent in parent_build_variant_id and has status refined. The parent becomes the session’s selected_variant_id, and the new variant its refined_variant_id. A refined Meta image post keeps its parent’s text and click-through URL; only the image is regenerated. A new action is refused while a variant of the previous action is still generating; poll with get and send it once that finishes. An actionKey the session has already used is refused, so a retry never buys the same work twice. The one exception is the session’s current action: repeating its call exactly, with the same expectedRevision, returns that action. Once a later action replaces it, its key is refused for the rest of the session; use a new key for new work. A session takes at most 256 generation actions; create a new session after that. Every save_creative_session request names its owner with exactly one of campaignId, for a campaign session, or advertiserId, for an advertiser Library session. The other fields say what the request saves: Each request makes one change: send exactly one of draft, selectedVariantId, approvedVariantId or finalization. To approve an output, send one request with approvedVariantId: the approval also selects it, and you do not need to send selectedVariantId first. Choose an output with selectedVariantId alone when you want to keep it selected without approving it. A request that sends more than one of them, or a field that belongs to a different change, is refused with an error naming the fields, and saves nothing. Each approved output finalises into its own Creative: a Creative in the advertiser’s Library for a Library session, or a Creative in the campaign for a campaign session. Finalising one output does not close the session. To keep another output too, select it, approve it and finalise it; it becomes a separate Creative. Finalising an output that is already a Creative returns that Creative and creates no other, and an output that is already a Creative cannot be approved again. In a session read, status and finalization describe the selected output: finalized with its Creative when the selected output has one, and refining with no finalization when it does not. Every output that has a Creative keeps the variant status finalized. A session that finalised an output before 12 November 2026 keeps that Creative. If the session no longer records which output it was, it stays closed: selecting, approving and finalising are refused with a message that names its Creative. Start a new session to save another output. Each response includes the current session, revision, and, when present, sessionGeneration. A draft response also includes nextGenerateVariants: a copy-ready generate_variants call with the saved revision and session generation plus a fresh action key. Use that key for the first request and reuse it only if that same request needs a retry. Generation returns its actionId and each leaf’s status, task ID, and variant IDs. For every completed variant, completedVariants includes an asset URL, MIME type, preview and, when the completed asset reports them, its dimensions, so an MCP client can use the image without a second lookup. poll is returned only when a submitted leaf has a task ID. A leaf marked uncertain or not_dispatched is terminal for that action: it is not retried automatically. An uncertain leaf may already have incurred a provider charge. The response states this terminal condition and, when no leaf completed or was submitted, is an error result; create a new generation action after correcting the request instead of polling. A not_dispatched leaf never started: Apostra refused it before contacting a provider, or the provider refused to start it. Either way no provider charge occurred. When the refusal is one Apostra can name, the leaf carries a failureReason:
  • creative_pre_provider_invalid_format: the requested format cannot be generated, for example an image with no size.
  • creative_pre_provider_invalid_request: another part of the request is invalid.
  • creative_engine_reconnect_required: the engine’s connection or key is no longer usable, so it must be reconnected in Creative Engines before it can generate.
  • provider_start_http_<status>, such as provider_start_http_401: the provider refused to start with that HTTP 4xx status. A 401 means the provider rejected the engine’s API key, for example because it expired or was revoked. When the engine uses your own key, Apostra then marks it as needing reconnection, so the action’s remaining leaves are refused with creative_engine_reconnect_required.
When every leaf was refused for one of these reasons, the error message says so and says how to fix it. For a format, it suggests setting a size or aspect ratio such as params.width and params.height on an image. For a rejected key or an engine that needs reconnecting, it says to reconnect the engine’s key in Creative Engines and generate again. Without a failureReason, the message stays general. Approval and finalisation controls remain in the session. Session detail is bounded in these responses. When sessionTruncated: true is present, sessionOmitted identifies omitted detail, while the returned action and retry controls remain exact. The durable session history is not paginated by these operations; use the existing V2 creative-session workflow to retrieve the complete record. If already-persisted action controls alone cannot fit in one response, the operation returns a bounded recovery error instead of clipping those IDs. Read the durable session before retrying the same saved action; this does not create a replacement generation request.

Promote an approved output

Use save_creative with fromCreativeSessionOutput after the buyer has approved the exact session variant. Supply advertiserId (the Library that receives the asset), campaignId only when a campaign owns the session, an idempotencyKey, and fromCreativeSessionOutput with the sessionId, approved variantId, sessionRevision that recorded the approval, and the outputHash of the approved output. Send nothing else: this request saves the approved output on its own, and it does not attach anything to the campaign. For a session that belongs to an advertiser Library, send advertiserId alone: the session must belong to that advertiser. Each approved output can be saved this way: approve one, save it, then select, approve and save the next. The service resolves the approved rendition from the durable approval, so callers do not pass an internal rendition ID: the image for an image output, or the audio track for a voice or audio output. A companion image generated beside a voice track is not the approved deliverable and is not promoted in its place. The response has action: "promoted" and contains the Creative Asset ID, immutable revision ID, SHA-256 digest and approval receipt ID. Approved audio joins the advertiser’s Library through managed audio storage, the same inspection an uploaded WAV or MP3 file receives. Until that inspection finishes, the response has action: "promoting" and a processingState of quarantined, inspecting or approved; no Creative Asset exists yet. Repeat the same call with the same arguments, usually after about a minute, to receive the Creative Asset. A repeat never stores the audio twice. If storing the audio for inspection takes longer than 30 seconds, the call fails with a retryable SERVICE_UNAVAILABLE error; repeat the same call. If inspection rejects the audio, promotion fails and no Creative Asset, revision or receipt is created. Audio approved before this behaviour existed carries no audio evidence and is refused; approve the output again, then promote it. Repeat an uncertain request with the same key and the same input while the named approval is still current to receive the same receipt without creating another revision. Reusing a key with a different approved output or advertiser fails. The service checks the buyer’s current advertiser access before it saves the immutable evidence and rejects a stale, replaced or unapproved output. Promotion retains the approved bytes as an advertiser-owned Creative Asset. It does not finalise or create a campaign Creative, export the bytes, contact a publisher, launch a campaign or approve seller inventory. Finalising a Creative does not promote or export it. When a buyer promotes an approved output, the revision records where it came from: the Engine, the provider, and whether it ran on the buyer’s own provider account or the Apostra-funded preview. That record comes from the generation call that produced the output, so outputs generated before provenance was recorded can still be promoted but carry no provider record. Reuse rights follow that provider’s terms; Apostra does not verify them. Check the provider’s terms before using the asset outside Apostra. Its current inspection is strict JPEG/PNG container and active-content validation for images, and the managed WAV/MP3 container inspection for audio. It records container_validated for that work; no malware scan runs during promotion today, and clean is reserved for a scanner verdict. The service does not create immutable evidence when inspection cannot complete. Promotion uploads the deterministic private copy before its final database write, but it has no Creative Asset catalog entry until the current advertiser grant is checked and locked. If that check fails, no catalog asset, revision or approval receipt is created.

Generate an asset from the Creative Library

When Creative Engines is enabled for your Buyer Account, open an advertiser’s Creative Library, choose the Assets tab, then select Generate. Choose an image, video, or voice asset and enter a short brief. Apostra saves an advertiser-scoped Creative Session, starts generation, and opens the generated variants gallery. You do not choose an engine. The request uses the account’s existing engine-resolution support for its asset type; if it cannot start, it explains the required setup and does not create a Draft. Choose one completed output in the gallery and select Use selected asset. The chosen output is saved as a Library Draft for that advertiser. Review or discard the Draft in the Assets tab before using it elsewhere. Choosing an output does not attach it to a campaign or start another generation request.

Review generated variants in an MCP App host

When generate_variants returns a Creative Session with generated outputs, its MCP App result identifies the ui://agentic-api/variant-gallery/mcp-app.html resource. To show an existing session after search or get, call open_variant_gallery with its sessionId; the optional campaignId or advertiserId asserts the owner, but the operation resolves and checks the saved owner when omitted. This is the canonical gallery operation. Compatible hosts render the Variant gallery beside the conversation; hosts without MCP App support retain the normal text result and asset URLs. The checked gallery field contains the bounded session state the widget needs: variants, previews, the selected output, the current revision and the advertiser identity required to save an approved output. Each completed image variant is also checked against the exact saved brief. The gallery shows whether the rendered image passed, needs review, or missed the brief, with a short reason. A warning does not stop draft review. Ask to refine a flagged variant when the result identifies a missing requested object or an unrelated dominant object. A failed brief-match check blocks finalising that output. The check uses only the generated image and the saved brief; a temporary evaluator failure is shown as a warning for human review. Selecting a variant does not start a generation. Refinement is a separate, explicit paid action: enter feedback for a selected parent, then choose Refine selected. The gallery calls generate_variants with that parent and feedback and renders a cap-exhausted RATE_LIMITED error without retrying it. Save to Library is also explicit. It selects and approves the chosen output, then saves it as one complete ad: a Creative in the advertiser’s Library that carries the generated image and every copy slot the output filled (headline, primary text, button and link). No campaign is attached. The gallery makes the save by finalising the exact approved output with destination: "library" (see Save an ad). Finalising the same output again returns the same Creative, so a retry never makes another one. The gallery confirms Saved to your Library. and offers the Creative Library link without exposing the returned identifiers. It records one bounded, best-effort completion activity; if that activity cannot be recorded, the saved state remains visible and the gallery does not retry it. Saving to the Library does not use the output in a campaign. Use in campaign is a separate, explicit action. On an output you already saved to the Library it attaches that same Library creative to the campaign. On an output you have not saved, it finalises the exact approved output as a campaign Creative. Either way an output becomes one Creative: the first destination wins, and asking for the other is refused by name instead of making a second. In a Library session, Save to Library finalises the approved output as a Creative in the advertiser’s Library. In either kind of session, saving or using one output leaves the others open: select another output and save or use it too. Each output that is already a Creative is marked on its card, and selecting it again shows that it is saved instead of making a second one. If the save is refused because access, inspection or rights checks fail, or the approval is stale, the gallery shows the reason and keeps the approval available. It never auto-generates or auto-saves an alternative.