Integrations that started before the OpenAI-compatible API use POST /v1/write on https://founders-89376--echo-writing-api.us-east.modal.run, with a key issued by the Prose team. New integrations should use /v1/chat/completions instead. By default, POST /v1/write waits up to 25 seconds. If the draft is not ready, it returns 202 with a status_url.
Poll that URL with the same key, waiting for the Retry-After interval between requests. It returns the finished draft once ready. Send Prefer: respond-async to get the 202 immediately. Reposting the same prompt starts a separate generation, so poll instead of retrying the POST. Errors on this endpoint have error.code and error.message. A 410 means the result expired (send the prompt again), and the body limit is 1 MiB.