image-agent
Image Agent

Chat

Send a message to the image agent.

post/api/v1/image-agent/chat

Request

  • Base URL: https://api.trylapis.com (the document declares no server; this is the origin it was published from)
  • URL: https://api.trylapis.com/api/v1/image-agent/chat
  • Auth: HTTP bearer

Request body

messagestring

User's message to the agent. Can be empty when chips provide the creative direction.

session_idinteger nullable

Existing session ID to continue conversation

ad_idinteger nullable

AdCampaignAd ID - loads target_audience, product_info, brand_guidelines, intro_text, reference_images, and saphire_website_id automatically from database

manual_reference_generation_idinteger nullable

ManualReferenceGeneration ID - loads the generated image into workspace for editing. Mutually exclusive with ad_id.

saphire_website_idinteger nullable

Saphire website ID for image generation (only used if ad_id/manual_reference_generation_id not provided)

Response

Successful Response

session_idinteger required

Session ID

textstring required

Agent's text response

tool_calls_madestring[]

Names of tools invoked in this response

frontend_contextobject nullable

Frontend session context persisted in backend

chat_request_idstring nullable

Unique ID grouping all LLM calls from this chat request

Changes

No recorded changes to this operation across all 1 revision of this API.