---
title: "Prompt Coach — Optimize"
method: POST
path: "/v1/prompt-coach/optimize"
---

# Prompt Coach — Optimize

`POST /v1/prompt-coach/optimize`

## Request

- Base URL: `https://api.jarvisclaw.ai`
- URL: `https://api.jarvisclaw.ai/v1/prompt-coach/optimize`
- Auth: HTTP x402

AI-powered prompt engineering: analyzes your prompt and returns an improved version with higher specificity, better structure, and optimized for the target model.

## Request body

- object
  - `goal` string: What you want the prompt to achieve
  - `prompt` string, required: The prompt to optimize
  - `target_model` string: Target model the prompt will be used with (e.g. gpt-4.1, claude-sonnet-4-6)

## Response `200`

Successful response

- object
  - `data` object

## Other responses

- `402`: Payment Required

---

[API](https://skmtc.dev/jarvisclaw/apis/jarvisclaw-api.md) · [All operations](https://skmtc.dev/jarvisclaw/apis/jarvisclaw-api/llms.txt) · [OpenAPI document](https://skmtc.dev/jarvisclaw/apis/jarvisclaw-api/revisions/2011c77f4e4f?raw)
