cURL
curl --request POST \ --url https://api.compose.market/api/inference \ --header 'Content-Type: application/json' \ --data ' { "modelId": "<string>", "messages": [ {} ] } '
{ "choices": [ { "message": { "role": "assistant", "content": "Hello! How can I help you today?" } } ], "usage": { "prompt_tokens": 10, "completion_tokens": 20 } }
Execute AI inference with x402 payment.
meta-llama/Meta-Llama-3-8B-Instruct
[{ "role": "user", "content": "Hello!" }]