auto_write
creative

The engine designs one scene of a film itself. Give it a beat: what the picture must make clear, the narration and its w

Changed on

The engine designs one scene of a film itself. Give it a beat: what the picture must make clear, the narration and its word timings on the scene's clock, the terms that must be on screen when they are spoken. It writes the scene as ordinary editable layers (text, shapes, vector paths and the brand logo, each named, every timing in seconds), so the design editor and the production editor open and change every part of it; format "code" writes it as one block of web code instead. It loads it in the frame it renders in and measures every frame that matters (text too small for a phone, text in the edge players crop or off the canvas, labels on top of each other, empty frames, code that fails), has a second model look at those frames, and repairs what was found, until it is clean or the rounds or the budget run out. A scene that continues the one before (the answer after a question, the next step of the same manoeuvre) takes that scene as follows: the engine reads its layers, sees its last frame and starts there, and the look checks the cut. Everything is yours to set: style (colours, type, the brand kit, any direction), rules added to the house rules, the film around this scene, quality best or fast, max_rounds, max_credits and whether the look runs. Model use is booked in credits, never more than max_credits for the scene. The scene comes back on the request; nothing is changed or published until you put the scene in a production.

post/api/v1/tools/production_author_scene

Request

  • Base URL
    https://app.magistry.io
  • Auth
    • HTTP bearer
    • or OAuth 2
      Authorization codehttps://app.magistry.io/api/oauth/authorize
      Token URLhttps://app.magistry.io/api/oauth/token
      Scopescreative:write

Headers

Idempotency-Key, string

Required, here or as idempotency_key in the body. A unique string you choose for this request; send the SAME key when retrying and the first answer is returned instead of writing twice (idempotent-replayed: true). The same key with other arguments is 409 idempotency_conflict. If the header and idempotency_key are both sent they must be equal.

Request body

object required
beat, object required
quality, 'best' | 'fast'

best (default) writes with the strongest model; fast is cheaper.

max_rounds, integer

Drafts at most (default 3).

max_credits, integer

The scene's credit budget; a repair only starts when another draft fits.

look, boolean

false skips the second model's look (measured only).

style, union

Free-form direction: background, palette, type, mood, references; brand {fonts, colors} replaces the store's kit for this scene. A string (a storyboard's look as it stands) is read as {look}.

rules, string

Rules for this production, added to the house rules; yours win.

context, string

The film around this scene: what came before and after, so it fits.

follows, object

The scene before, which this one continues: its doc as production_get or an earlier author result returns it ({duration, layers, ...}). The engine reads its layers, sees its last frame and starts this scene there: the same drawing, symbols and labels, everything where it stood. The look sees that frame next to this scene's first.

format, 'layers' | 'code'

layers (default): editable layers the editors open; code: one block of web code, exact but editable only as code.

media, string[]

Library pictures and footage (ids from the store media library) the scene uses; each lands as an ordinary image or video layer. Layers only.

idempotency_key, string required

Required. A unique string you choose for this request. Send the SAME key when retrying after a timeout and Magistry returns the original outcome instead of performing the write twice. Reusing a key with different arguments is refused rather than replayed.

Response

Tool result

object required
ok, boolean required
result, unknown required

Changes

    • warning

      added the new method_not_allowed enum value to the error response property for the response status

    • warning

      added the new method_not_allowed enum value to the error response property for the response status

    • warning

      added the new method_not_allowed enum value to the error response property for the response status

    11 more changes in this revision