Rawa · Schema

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-`` handles. Validation keeps every layer of the design (same id, type and order) and, on a clip redone at its own canvas, each layer's ``motion`` and ``visibility`` and each scene's window; colours, families and node types the design already uses stay legal even outside the brand lock. The job's own shape says what kind of redo it is: the design's canvas adapts it, another canvas re-lays it out, and ``motion`` on a still design animates it. With ``motion`` the design is written into the clip as its scenes (a sectioned design's sections, else one scene) and the designer revises them rather than planning anew. A clip keeps its length: ``motion.duration`` must be the design's. With ``budget.max_scenes`` at 0 the redo cannot make new imagery, which is what a copy edit, a translation or a graphics-only change is. A redo of a still or of a carousel may edit and resize the design's pictures, up to ``budget.max_image_edits`` calls (a carousel gets one more per page past the first), with or without a scene budget: copy painted into a picture is erased from it and set again as text. ``progress_webhook_url`` then receives ``graphics_agent.progress``: the layers the run is changing, best effort, one delivery attempt per event. ``reference_pages`` adapts a finished carousel the same way, page for page: with ``carousel``, each entry is one page's ``composition`` and the S3 key of its delivered still, in order, and page n of the new carousel keeps the layers of page n. The carousel keeps its page count (``pages`` may be omitted, and must otherwise equal it). Its pages share one canvas; on another ``width`` x ``height`` every page is re-laid out for it, and a full-bleed photo is outpainted to the new shape once for every page it fills. An image several pages show reaches the designer once. ``reference_video_s3_key`` makes a video (``motion``) like a finished video, with the brand's own products: the video (on the media host, at most 60 s) is read once for its cuts and frames, which the designer is shown, and every review sets the clip's frame at each moment beside the video's (a video of another length maps in proportion). It is a target to match, not a design to edit: the clip is planned and drawn from scratch, and it cannot be combined with ``reference``. ``review_mode`` overrides the deployment's review mode for a video: ``independent`` has a critic model watch each draft; ``self`` calls no critic model and shows the designer the frames the critic would see (beside the reference's, with one) and asks it to fix what differs; ``auto`` is ``self`` with a ``reference_video_s3_key`` and ``independent`` without (a ``reference`` design is changed as the brief asks, which a critic judges). ``placement`` names where the ad will run and narrows the enforced ad specs — safe zone, minimum type sizes, minimum logo width and its clear space — to that placement's row. Omit it and the specs resolve to the strictest numbers across every placement that ships this aspect ratio, so the asset is legible wherever it is posted. A placement that does not ship the requested canvas ratio is a 422. ``effort`` sets how hard the designer model thinks on each turn, in every mode above: ``high`` designs better and runs longer and costs more, ``low`` is faster and cheaper. Omitted, the deployment's default applies; any other value is read as omitted (logged, never a 422).

Artificial IntelligenceMarketingEnterpriseContentPlatform

Properties

Name Type Description
prompt string The ad brief
images array Input images by S3 key with a role (product, scene, reference, logo, place, ambassador, element: one of the design system's graphic elements, used only where the design calls for it); a logo may carry
width integer Canvas width in pixels
height integer Canvas height in pixels
carousel boolean A carousel of 2 to 10 still pages on the one canvas, designed as one sequence; the designer picks the count from the brief unless `pages` fixes it, and the webhook carries every page in `pages`. Not w
pages object A carousel of exactly this many pages, over any count the brief names. Needs carousel
brand object Design system: palette/font/CTA locks with colour and type roles, voice and guidelines, design rules, aesthetic, the brand's name, and the S3 key of the contact sheet of the design system's reference
reference object Adapt mode: a delivered ad's composition (image sources as media URLs) to reproduce for this brief, plus the S3 key of its rendered still when it has one
reference_pages object Adapt a carousel: every page of a delivered carousel in order, each its composition (image sources as media URLs) and the S3 key of its rendered still, every page on one canvas. Needs carousel; the ru
reference_video_s3_key object A finished video (S3 key on the media host, at most 60 s) to make the video like, with the brand's own products. Requires motion; not combinable with reference
review_mode object How a video's drafts are reviewed: 'independent' (a critic model), 'self' (the designer compares its own frames, against the reference when there is one) or 'auto' ('self' with a reference video, else
budget object Call-count caps on turns, previews and scene generations (not a cost cap: retried provider attempts bill against one call)
scene object The halaX brief behind generate_scene: image_model, image_size, brand (identity for the palette), photography_guidelines and allow_religious_content. Read only by the scene tool.
motion object Makes a video: clip duration (2-30 s) and fps; the result is an mp4. The designer model draws every scene of the clip as editable layers (sections, cuts, motion groups) and reviews it as it plays. Wit
library array The brand library a video may show (up to 36 images by S3 key, with a role and a name). Requires motion.
placement object Where the ad will run, which narrows the enforced ad specs (safe zone, type and logo floors) to that placement. Omit for the strictest numbers across every placement that ships this aspect ratio. Must
direction object Art direction the agent must follow. Omit to let the workflow assign one of its built-in directions from variation_index.
variation_index object Position of this run among its sibling variations; rotates the assigned art direction so each variation differs. Ignored when direction is set.
effort object How hard the designer model thinks on each turn: `low`, `medium` or `high`. More effort buys better design judgement for a longer run that costs more; less is faster and cheaper. It applies to whichev
output_path string S3 prefix for the render, thumbnail and intermediate assets (e.g. 'brands//creativeAssets')
webhook_url object
progress_webhook_url object
View JSON Schema on GitHub

JSON Schema

rawa-ai-graphics-agent-workflow-input-api-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/rawa-ai/json-schema/rawa-ai-graphics-agent-workflow-input-api-schema.json",
  "title": "GraphicsAgentWorkflowInputAPI",
  "description": "API input for the Graphics Agent workflow.\n\nA Gemini tool-calling agent designs a complete, editable ad as a\nmedia-composer document. It may generate a text-free scene (halaX: the\nenhancement agent, then the brand's image model, with the product passed\nas a reference so it is rendered natively in the scene; there is no\nbackground removal), validate and preview its own render, and finish.\nThe final document is rendered, thumbnailed and uploaded; the\n``graphics_agent.succeeded`` webhook carries the image plus ``composition``\n(image sources resolved to URLs, ready for the editor) and\n``resolved_composition``.\n\nA scene is generated by halaX, the same harness behind ``/halax_image``:\nthe enhancement agent rewrites the designer's photography brief with its\ncultural-attire and brand-identity tools, then the brand's image model\ndraws it. Everything that brief needs is under ``scene`` —\n``scene.image_model`` (Nano Banana Pro by default), ``scene.image_size``,\n``scene.brand.identity`` (color palette with per-color instructions and a\npalette image), ``scene.photography_guidelines`` and\n``scene.allow_religious_content``. None of it reaches the designer, which\nreads ``brand`` instead.\n\n``brand.colors`` and ``brand.fonts`` are hard locks enforced by validation,\nand so is the variant of each ``brand.cta_styles`` entry (the design system's buttons,\nprimary first, whose colours are allowed on buttons); ``brand.voice`` and\n``brand.guidelines`` only steer the prompt. Each ``brand.fonts`` entry is ``{family, s3_key?, weights?}``:\na family bundled with the renderer is allowed by name, and any other family\nmust carry the ``s3_key`` of its font file, which the workflow attaches to\nthe document as a ``tokens.fonts`` entry so the face actually resolves.\n\n``budget`` caps how many *calls* the run makes — turns, previews, scene\ngenerations. It is not a cost cap: a provider call\nthat fails is retried, and every attempt is billed against the one call it\ncounted. Token spend is capped separately by the server-side\n``GRAPHICS_AGENT_TOKEN_BUDGET``; exceeding it ends the run on the\n``budget_exhausted`` path with the last valid draft. A single-page still run\nmay cut a product or a person out of its picture's background, up to\n``budget.max_cutouts`` calls.\n\n``motion`` makes the result a video, an mp4 (``type: \"video\"``,\n``duration``), instead of a PNG. A video is designed by free design, from\nthe brief or from a ``reference``: the designer model plans the clip and draws every\nscene as media-composer layers (all scenes at once, from the plan); an\nindependent reviewer watches each draft as it plays and lists the\nproblems a viewer would notice, and the designer revises until the\nreviewer would ship it or the reviews run out. The engine only\nvalidates, renders and checks. The document is ordinary editable layers\norganised in sections with cuts and motion groups, and the result\ncarries it by reference in ``documents`` (the completion webhook inlines\nit). Free design runs on the deployment's free-design model and effort.\n\n``library`` is the brand library a clip designed from the brief may\nchoose from, on top of ``images``: each entry is measured (size, a logo's\nlight or dark ink, faces) and shown to the agent as labelled thumbnail\nsheets. A non-empty ``library`` needs a video. ``brand.name`` is the\nbrand as the viewer knows it, named in the free-design prompt.\n\n``reference`` switches the job to adapt mode: ``reference.document`` is the\n``composition`` of an ad this endpoint delivered earlier, and the agent\nreproduces that ad for what the brief now asks (another product, another\noffer) instead of designing from a blank canvas. The design's images reach\nthe agent as ``asset:source-<n>`` handles. Validation keeps every layer of\nthe design (same id, type and order) and, on a clip redone at its own\ncanvas, each layer's ``motion`` and ``visibility`` and each scene's window;\ncolours, families and node types the design already uses stay legal even\noutside the brand lock. The job's own shape says what kind of redo it is:\nthe design's canvas adapts it, another canvas re-lays it out, and\n``motion`` on a still design animates it. With ``motion`` the design is\nwritten into the clip as its scenes (a sectioned design's sections, else\none scene) and the designer revises them rather than planning anew. A clip\nkeeps its length: ``motion.duration`` must be the design's. With\n``budget.max_scenes`` at 0 the redo cannot make new imagery, which is what\na copy edit, a translation or a graphics-only change is. A redo of a still\nor of a carousel may edit and resize the design's pictures, up to\n``budget.max_image_edits`` calls (a carousel gets one more per page past the\nfirst), with or without a scene budget: copy painted into a picture is\nerased from it and set again as text. ``progress_webhook_url`` then receives\n``graphics_agent.progress``: the layers the run is changing, best effort, one\ndelivery attempt per event.\n\n``reference_pages`` adapts a finished carousel the same way, page for page: with\n``carousel``, each entry is one page's ``composition`` and the S3 key of its\ndelivered still, in order, and page n of the new carousel keeps the layers of\npage n. The carousel keeps its page count (``pages`` may be omitted, and must\notherwise equal it). Its pages share one canvas; on another ``width`` x\n``height`` every page is re-laid out for it, and a full-bleed photo is\noutpainted to the new shape once for every page it fills. An image several\npages show reaches the designer once.\n\n``reference_video_s3_key`` makes a video (``motion``) like a\nfinished video, with the brand's own products: the video (on the media host,\nat most 60 s) is read once for its cuts and frames, which the designer is\nshown, and every review sets the clip's frame at each moment beside the\nvideo's (a video of another length maps in proportion). It is a target to\nmatch, not a design to edit: the clip is planned and drawn from scratch, and\nit cannot be combined with ``reference``.\n\n``review_mode`` overrides the deployment's review mode for a video:\n``independent`` has a critic model watch each draft; ``self`` calls no critic\nmodel and shows the designer the frames the critic would see (beside the\nreference's, with one) and asks it to fix what differs; ``auto`` is ``self``\nwith a ``reference_video_s3_key`` and ``independent`` without (a\n``reference`` design is changed as the brief asks, which a critic judges).\n\n``placement`` names where the ad will run and narrows the enforced ad specs\n— safe zone, minimum type sizes, minimum logo width and its clear space —\nto that placement's row. Omit it and the specs resolve to the strictest\nnumbers across every placement that ships this aspect ratio, so the asset\nis legible wherever it is posted. A placement that does not ship the\nrequested canvas ratio is a 422.\n\n``effort`` sets how hard the designer model thinks on each turn, in every\nmode above: ``high`` designs better and runs longer and costs more,\n``low`` is faster and cheaper. Omitted, the deployment's default applies;\nany other value is read as omitted (logged, never a 422).",
  "x-generated": "2026-11-22",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/_original/rawa-ai-api-openapi.json#/components/schemas/GraphicsAgentWorkflowInputAPI",
  "properties": {
    "prompt": {
      "type": "string",
      "maxLength": 10000,
      "minLength": 1,
      "title": "Prompt",
      "description": "The ad brief"
    },
    "images": {
      "items": {
        "$ref": "#/$defs/GraphicsAgentImage"
      },
      "type": "array",
      "maxItems": 12,
      "title": "Images",
      "description": "Input images by S3 key with a role (product, scene, reference, logo, place, ambassador, element: one of the design system's graphic elements, used only where the design calls for it); a logo may carry its layout (mark, horizontal, stacked)"
    },
    "width": {
      "type": "integer",
      "maximum": 4096.0,
      "minimum": 256.0,
      "title": "Width",
      "description": "Canvas width in pixels"
    },
    "height": {
      "type": "integer",
      "maximum": 4096.0,
      "minimum": 256.0,
      "title": "Height",
      "description": "Canvas height in pixels"
    },
    "carousel": {
      "type": "boolean",
      "title": "Carousel",
      "description": "A carousel of 2 to 10 still pages on the one canvas, designed as one sequence; the designer picks the count from the brief unless `pages` fixes it, and the webhook carries every page in `pages`. Not with motion or reference; reference_pages adapts an existing carousel",
      "default": false
    },
    "pages": {
      "anyOf": [
        {
          "type": "integer",
          "maximum": 10.0,
          "minimum": 2.0
        },
        {
          "type": "null"
        }
      ],
      "title": "Pages",
      "description": "A carousel of exactly this many pages, over any count the brief names. Needs carousel"
    },
    "brand": {
      "$ref": "#/$defs/GraphicsAgentDesignSystem",
      "description": "Design system: palette/font/CTA locks with colour and type roles, voice and guidelines, design rules, aesthetic, the brand's name, and the S3 key of the contact sheet of the design system's reference images, which the designer may ask to see"
    },
    "reference": {
      "anyOf": [
        {
          "$ref": "#/$defs/GraphicsAgentReference"
        },
        {
          "type": "null"
        }
      ],
      "description": "Adapt mode: a delivered ad's composition (image sources as media URLs) to reproduce for this brief, plus the S3 key of its rendered still when it has one"
    },
    "reference_pages": {
      "anyOf": [
        {
          "items": {
            "$ref": "#/$defs/GraphicsAgentReference"
          },
          "type": "array",
          "maxItems": 10,
          "minItems": 2
        },
        {
          "type": "null"
        }
      ],
      "title": "Reference Pages",
      "description": "Adapt a carousel: every page of a delivered carousel in order, each its composition (image sources as media URLs) and the S3 key of its rendered still, every page on one canvas. Needs carousel; the run makes exactly this many pages on this canvas, re-laid out when it is another"
    },
    "reference_video_s3_key": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Reference Video S3 Key",
      "description": "A finished video (S3 key on the media host, at most 60 s) to make the video like, with the brand's own products. Requires motion; not combinable with reference"
    },
    "review_mode": {
      "anyOf": [
        {
          "type": "string",
          "enum": [
            "independent",
            "self",
            "auto"
          ]
        },
        {
          "type": "null"
        }
      ],
      "title": "Review Mode",
      "description": "How a video's drafts are reviewed: 'independent' (a critic model), 'self' (the designer compares its own frames, against the reference when there is one) or 'auto' ('self' with a reference video, else 'independent'). Omit for the deployment's default"
    },
    "budget": {
      "$ref": "#/$defs/GraphicsAgentBudget",
      "description": "Call-count caps on turns, previews and scene generations (not a cost cap: retried provider attempts bill against one call)"
    },
    "scene": {
      "$ref": "#/$defs/GraphicsAgentScene",
      "description": "The halaX brief behind generate_scene: image_model, image_size, brand (identity for the palette), photography_guidelines and allow_religious_content. Read only by the scene tool."
    },
    "motion": {
      "anyOf": [
        {
          "$ref": "#/$defs/GraphicsAgentMotion"
        },
        {
          "type": "null"
        }
      ],
      "description": "Makes a video: clip duration (2-30 s) and fps; the result is an mp4. The designer model draws every scene of the clip as editable layers (sections, cuts, motion groups) and reviews it as it plays. With reference, the design is animated or redone at its own length."
    },
    "library": {
      "items": {
        "$ref": "#/$defs/GraphicsAgentLibraryImage"
      },
      "type": "array",
      "maxItems": 36,
      "title": "Library",
      "description": "The brand library a video may show (up to 36 images by S3 key, with a role and a name). Requires motion."
    },
    "placement": {
      "anyOf": [
        {
          "type": "string",
          "enum": [
            "instagram_feed",
            "instagram_story",
            "instagram_story_ad",
            "instagram_reels",
            "instagram_reels_ad",
            "tiktok_organic",
            "tiktok_ad",
            "snapchat",
            "snapchat_ad",
            "linkedin_feed",
            "linkedin_video",
            "linkedin_video_ad",
            "google_display",
            "youtube_instream",
            "youtube_shorts",
            "youtube_shorts_ad"
          ]
        },
        {
          "type": "null"
        }
      ],
      "title": "Placement",
      "description": "Where the ad will run, which narrows the enforced ad specs (safe zone, type and logo floors) to that placement. Omit for the strictest numbers across every placement that ships this aspect ratio. Must ship the requested width/height ratio."
    },
    "direction": {
      "anyOf": [
        {
          "type": "string",
          "maxLength": 1000
        },
        {
          "type": "null"
        }
      ],
      "title": "Direction",
      "description": "Art direction the agent must follow. Omit to let the workflow assign one of its built-in directions from variation_index."
    },
    "variation_index": {
      "anyOf": [
        {
          "type": "integer",
          "minimum": 0.0
        },
        {
          "type": "null"
        }
      ],
      "title": "Variation Index",
      "description": "Position of this run among its sibling variations; rotates the assigned art direction so each variation differs. Ignored when direction is set."
    },
    "effort": {
      "anyOf": [
        {
          "type": "string",
          "enum": [
            "low",
            "medium",
            "high"
          ]
        },
        {
          "type": "null"
        }
      ],
      "title": "Effort",
      "description": "How hard the designer model thinks on each turn: `low`, `medium` or `high`. More effort buys better design judgement for a longer run that costs more; less is faster and cheaper. It applies to whichever designer model the deployment runs (Claude's effort, Gemini's thinking level of the same name). Omit for the deployment's default; any other value is treated as omitted."
    },
    "output_path": {
      "type": "string",
      "title": "Output Path",
      "description": "S3 prefix for the render, thumbnail and intermediate assets (e.g. 'brands/<brand_id>/creativeAssets')"
    },
    "webhook_url": {
      "anyOf": [
        {
          "type": "string",
          "maxLength": 2083,
          "minLength": 1,
          "format": "uri"
        },
        {
          "type": "null"
        }
      ],
      "title": "Webhook Url"
    },
    "progress_webhook_url": {
      "anyOf": [
        {
          "type": "string",
          "maxLength": 2083,
          "minLength": 1,
          "format": "uri"
        },
        {
          "type": "null"
        }
      ],
      "title": "Progress Webhook Url"
    }
  },
  "type": "object",
  "required": [
    "prompt",
    "width",
    "height",
    "output_path"
  ],
  "$defs": {
    "GraphicsAgentBrandFont": {
      "properties": {
        "family": {
          "type": "string",
          "minLength": 1,
          "title": "Family"
        },
        "s3_key": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "S3 Key"
        },
        "weights": {
          "anyOf": [
            {
              "items": {
                "type": "integer"
              },
              "type": "array"
            },
            {
              "type": "null"
            }
          ],
          "title": "Weights"
        },
        "note": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Note"
        },
        "role": {
          "anyOf": [
            {
              "type": "string",
              "enum": [
                "headline",
                "body",
                "accent"
              ]
            },
            {
              "type": "null"
            }
          ],
          "title": "Role"
        }
      },
      "type": "object",
      "required": [
        "family"
      ],
      "title": "GraphicsAgentBrandFont",
      "description": "One family the ad may set as ``fontFamily``.\n\nA bundled family (one of ``standard_fonts.json``) needs nothing but its\nname: the renderer resolves it. A custom family must carry the ``s3_key``\nof its font file, which the workflow turns into the document's\n``tokens.fonts`` block so the renderer can actually load the face —\nwithout it the family silently falls back to a system face.\n``weights`` are the CSS weights that file should serve (default 400/700)."
    },
    "GraphicsAgentBudget": {
      "properties": {
        "max_steps": {
          "type": "integer",
          "maximum": 40.0,
          "minimum": 1.0,
          "title": "Max Steps",
          "default": 24
        },
        "max_previews": {
          "type": "integer",
          "maximum": 10.0,
          "minimum": 0.0,
          "title": "Max Previews",
          "default": 4
        },
        "max_scenes": {
          "type": "integer",
          "maximum": 6.0,
          "minimum": 0.0,
          "title": "Max Scenes",
          "default": 2
        },
        "max_blocks": {
          "type": "integer",
          "maximum": 20.0,
          "minimum": 0.0,
          "title": "Max Blocks",
          "default": 8
        },
        "max_audio": {
          "type": "integer",
          "maximum": 8.0,
          "minimum": 0.0,
          "title": "Max Audio",
          "default": 3
        },
        "max_image_edits": {
          "type": "integer",
          "maximum": 6.0,
          "minimum": 0.0,
          "title": "Max Image Edits",
          "default": 3
        },
        "max_cutouts": {
          "type": "integer",
          "maximum": 6.0,
          "minimum": 0.0,
          "title": "Max Cutouts",
          "default": 3
        }
      },
      "type": "object",
      "title": "GraphicsAgentBudget",
      "description": "Caps on how many *calls* the workflow makes; the prompt only announces\nthem. They are call-count caps, not cost caps: a provider activity that\nfails and is retried bills every attempt against one counted call. The\ntoken budget (``GRAPHICS_AGENT_TOKEN_BUDGET``) is the cost-shaped cap."
    },
    "GraphicsAgentCtaStyle": {
      "properties": {
        "name": {
          "type": "string",
          "maxLength": 120,
          "minLength": 1,
          "title": "Name"
        },
        "usage": {
          "anyOf": [
            {
              "type": "string",
              "maxLength": 500
            },
            {
              "type": "null"
            }
          ],
          "title": "Usage"
        },
        "variant": {
          "anyOf": [
            {
              "type": "string",
              "enum": [
                "filled",
                "outline",
                "ghost",
                "underline"
              ]
            },
            {
              "type": "null"
            }
          ],
          "title": "Variant"
        },
        "background_color": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Background Color"
        },
        "color": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Color"
        },
        "border_radius": {
          "anyOf": [
            {
              "type": "number"
            },
            {
              "type": "null"
            }
          ],
          "title": "Border Radius"
        },
        "text_transform": {
          "anyOf": [
            {
              "type": "string",
              "enum": [
                "uppercase",
                "lowercase",
                "capitalize",
                "none"
              ]
            },
            {
              "type": "null"
            }
          ],
          "title": "Text Transform"
        }
      },
      "type": "object",
      "required": [
        "name"
      ],
      "title": "GraphicsAgentCtaStyle",
      "description": "One of the design system's call-to-action buttons, in the renderer's terms: ``color`` is\nthe label of a filled button and the whole button of any other variant.\n``usage`` is the brand's note on when to use it."
    },
    "GraphicsAgentDesignSystem": {
      "properties": {
        "colors": {
          "items": {
            "type": "string"
          },
          "type": "array",
          "title": "Colors"
        },
        "color_roles": {
          "additionalProperties": {
            "type": "string",
            "enum": [
              "primary",
              "secondary",
              "accent",
              "background",
              "text"
            ]
          },
          "type": "object",
          "title": "Color Roles"
        },
        "fonts": {
          "items": {
            "$ref": "#/$defs/GraphicsAgentBrandFont"
          },
          "type": "array",
          "title": "Fonts"
        },
        "cta_styles": {
          "items": {
            "$ref": "#/$defs/GraphicsAgentCtaStyle"
          },
          "type": "array",
          "title": "Cta Styles"
        },
        "voice": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Voice"
        },
        "guidelines": {
          "items": {
            "type": "string"
          },
          "type": "array",
          "title": "Guidelines"
        },
        "name": {
          "anyOf": [
            {
              "type": "string",
              "maxLength": 120
            },
            {
              "type": "null"
            }
          ],
          "title": "Name"
        },
        "design_rules": {
          "items": {
            "type": "string"
          },
          "type": "array",
          "title": "Design Rules"
        },
        "aesthetic": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Aesthetic"
        },
        "contact_sheet_s3_key": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Contact Sheet S3 Key"
        }
      },
      "type": "object",
      "title": "GraphicsAgentDesignSystem",
      "description": "The design system the run was submitted with: everything about the look the agent must honor.\n\n``colors`` and ``fonts`` are *locks*: validation rejects any other value.\n``color_roles`` maps a locked hex to its role. ``cta_styles`` lists the design system's\nbuttons, primary first: a button's variant must be one of theirs, and their\ncolours are allowed on buttons beside the palette. ``voice``, ``guidelines``,\n``design_rules`` and ``aesthetic`` are prompt-only; nothing can check them. ``contact_sheet_s3_key`` is one image of\nthe design system's reference work, shown only when the designer asks for it."
    },
    "GraphicsAgentImage": {
      "properties": {
        "s3_key": {
          "type": "string",
          "title": "S3 Key"
        },
        "role": {
          "type": "string",
          "enum": [
            "product",
            "scene",
            "reference",
            "logo",
            "place",
            "ambassador",
            "element"
          ],
          "title": "Role"
        },
        "name": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Name"
        }
      },
      "type": "object",
      "required": [
        "s3_key",
        "role"
      ],
      "title": "GraphicsAgentImage",
      "description": "An input image, referenced by S3 key. The workflow turns it into an asset."
    },
    "GraphicsAgentLibraryImage": {
      "properties": {
        "s3_key": {
          "type": "string",
          "title": "S3 Key"
        },
        "role": {
          "type": "string",
          "enum": [
            "product",
            "scene",
            "reference",
            "logo",
            "place",
            "ambassador",
            "client_logo"
          ],
          "title": "Role"
        },
        "name": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Name"
        }
      },
      "type": "object",
      "required": [
        "s3_key",
        "role"
      ],
      "title": "GraphicsAgentLibraryImage",
      "description": "One image of the brand's library, offered to a clip designed from the\nbrief (free design) to choose from."
    },
    "GraphicsAgentMotion": {
      "properties": {
        "duration": {
          "type": "number",
          "maximum": 30.0,
          "minimum": 2.0,
          "title": "Duration"
        },
        "fps": {
          "type": "integer",
          "maximum": 60.0,
          "minimum": 12.0,
          "title": "Fps",
          "default": 30
        }
      },
      "type": "object",
      "required": [
        "duration"
      ],
      "title": "GraphicsAgentMotion",
      "description": "Asks for a video (an mp4) instead of a still, designed by free design: the clip is\nplanned and drawn scene by scene and reviewed as it plays (``free_session``).\n\n``duration`` is the clip length; ``fps`` is the capture rate of the render."
    },
    "GraphicsAgentReference": {
      "properties": {
        "document": {
          "additionalProperties": true,
          "type": "object",
          "title": "Document"
        },
        "render_s3_key": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Render S3 Key"
        },
        "render_url": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Render Url"
        }
      },
      "type": "object",
      "required": [
        "document"
      ],
      "title": "GraphicsAgentReference",
      "description": "A finished design to adapt instead of designing from scratch.\n\n``document`` is the composition the platform stores for a delivered ad:\nimage sources are media-host URLs on the way in, and ``asset:source-<n>``\nhandles once the workflow has prepared them. Its layers are the structure\nthe new ad must keep (see ``reference.validate_reference``); what changes is\nwhat the brief asks to change, usually the product.\n\n``render_s3_key`` is the delivered still, shown to the agent so it sees the\nad it is reproducing; ``render_url`` is that key resolved by the workflow.\nA clip has no still to show: its timing is read off the document."
    },
    "GraphicsAgentScene": {
      "properties": {
        "image_model": {
          "type": "string",
          "enum": [
            "nano_banana_pro",
            "gpt_image_2_5"
          ],
          "title": "Image Model",
          "default": "nano_banana_pro"
        },
        "image_size": {
          "type": "string",
          "enum": [
            "1K",
            "2K",
            "4K"
          ],
          "title": "Image Size",
          "default": "2K"
        },
        "brand": {
          "$ref": "#/$defs/HalaxBrandAssets"
        },
        "photography_guidelines": {
          "type": "string",
          "title": "Photography Guidelines",
          "default": ""
        },
        "allow_religious_content": {
          "type": "boolean",
          "title": "Allow Religious Content",
          "default": false
        },
        "market": {
          "type": "string",
          "maxLength": 120,
          "title": "Market",
          "default": ""
        }
      },
      "type": "object",
      "title": "GraphicsAgentScene",
      "description": "Settings for the halaX brief behind ``generate_scene``.\n\nNone of this reaches the designer: it is read once, when the scene tool\nbuilds its brief, so it stays off the per-step job payload rather than\nbeing re-serialised on every one of up to 40 agent steps."
    },
    "HalaxBrandAssets": {
      "properties": {
        "light_logo_s3_key": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Light Logo S3 Key"
        },
        "dark_logo_s3_key": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Dark Logo S3 Key"
        },
        "colors": {
          "items": {
            "type": "string"
          },
          "type": "array",
          "title": "Colors"
        },
        "fonts": {
          "items": {
            "type": "string"
          },
          "type": "array",
          "title": "Fonts"
        }
      },
      "type": "object",
      "title": "HalaxBrandAssets",
      "description": "Brand records the enhancement agent may pull in with its tools."
    }
  }
}

Work with this as data

Every JSON Schema here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for schemas

4 MCP tools reach this
  • find_json_schemasBrowse and filter every JSON Schema in the catalog.
  • 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.
All 92 tools →

Call it yourself

curl for this page
This JSON Schema
curl "https://apis.io/api/v1/json-schemas/rawa-ai-graphics-agent-workflow-input-api"
All schemas
curl "https://apis.io/api/v1/json-schemas?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API 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.