GraphicsAgentWorkflowInputAPI
API input for the Graphics Agent workflow. A Gemini tool-calling agent designs a complete, editable ad as a media-composer document. It may generate a text-free scene (halaX: the enhancement agent, then the brand's image model, with the product passed as a reference so it is rendered natively in the scene; there is no background removal), validate and preview its own render, and finish. The final document is rendered, thumbnailed and uploaded; the ``graphics_agent.succeeded`` webhook carries the image plus ``composition`` (image sources resolved to URLs, ready for the editor) and ``resolved_composition``. A scene is generated by halaX, the same harness behind ``/halax_image``: the enhancement agent rewrites the designer's photography brief with its cultural-attire and brand-identity tools, then the brand's image model draws it. Everything that brief needs is under ``scene`` — ``scene.image_model`` (Nano Banana Pro by default), ``scene.image_size``, ``scene.brand.identity`` (color palette with per-color instructions and a palette image), ``scene.photography_guidelines`` and ``scene.allow_religious_content``. None of it reaches the designer, which reads ``brand`` instead. ``brand.colors`` and ``brand.fonts`` are hard locks enforced by validation, and so is the variant of each ``brand.cta_styles`` entry (the design system's buttons, primary first, whose colours are allowed on buttons); ``brand.voice`` and ``brand.guidelines`` only steer the prompt. Each ``brand.fonts`` entry is ``{family, s3_key?, weights?}``: a family bundled with the renderer is allowed by name, and any other family must carry the ``s3_key`` of its font file, which the workflow attaches to the document as a ``tokens.fonts`` entry so the face actually resolves. ``budget`` caps how many *calls* the run makes — turns, previews, scene generations. It is not a cost cap: a provider call that fails is retried, and every attempt is billed against the one call it counted. Token spend is capped separately by the server-side ``GRAPHICS_AGENT_TOKEN_BUDGET``; exceeding it ends the run on the ``budget_exhausted`` path with the last valid draft. A single-page still run may cut a product or a person out of its picture's background, up to ``budget.max_cutouts`` calls. ``motion`` makes the result a video, an mp4 (``type: "video"``, ``duration``), instead of a PNG. A video is designed by free design, from the brief or from a ``reference``: the designer model plans the clip and draws every scene as media-composer layers (all scenes at once, from the plan); an independent reviewer watches each draft as it plays and lists the problems a viewer would notice, and the designer revises until the reviewer would ship it or the reviews run out. The engine only validates, renders and checks. The document is ordinary editable layers organised in sections with cuts and motion groups, and the result carries it by reference in ``documents`` (the completion webhook inlines it). Free design runs on the deployment's free-design model and effort. ``library`` is the brand library a clip designed from the brief may choose from, on top of ``images``: each entry is measured (size, a logo's light or dark ink, faces) and shown to the agent as labelled thumbnail sheets. A non-empty ``library`` needs a video. ``brand.name`` is the brand as the viewer knows it, named in the free-design prompt. ``reference`` switches the job to adapt mode: ``reference.document`` is the ``composition`` of an ad this endpoint delivered earlier, and the agent reproduces that ad for what the brief now asks (another product, another offer) instead of designing from a blank canvas. The design's images reach the agent as ``asset:source-
Properties
JSON Schema
Work with this as data
Every JSON Schema here is available over the APIs.io API and to AI agents over MCP.