This is the curl-only path through Morpheus — no MorpheusUI, no CLI. Useful for developers, scripts, or agent frameworks.

Pre-requisites

TL;DR

1

Approve

Once per wallet, or when allowance is depleted.
2

Query

Per session: list models, pick a modelId.
3

Open session

Per session: POST /blockchain/models/:id/session.
4

Prompt

Send completions with the session_id header.

A. Authorize the contract

This authorizes the Diamond contract to spend up to 3 MOR on your behalf.

B. Query for a model

Sample response:
Pick an Id for the next step.

C. Open a session

The transaction will appear at https://base.blockscout.com/address/<wallet_id>.

D. Prompt

OpenAI-compatible SSE response.

Quick-and-dirty one-liner

Sample streaming output (truncated)

For full request/response schemas across endpoints, see API endpoints or proxy-router/docs/swagger.yaml.