{"openapi":"3.2.0","info":{"title":"Anthropic All Models API","description":"With 50% discount. Direct and highly available API for all latest Claude models: Claude 5.5 Opus, Claude-5.5 Sonnet, Claude 5.5 Haiku, and more.","version":"1.0.0"},"servers":[{"url":"https://anthropic.jojapi.net"}],"security":[{"ApiKeyAuth":[]}],"tags":[{"name":"OpenAI Endpoints"},{"name":"Anthropic Endpoints"}],"x-agent-commerce":{"catalog_url":"https://anthropic.jojapi.net/_jojapi/agent/plans","discovery_url":"https://anthropic.jojapi.net/.well-known/x402","directory_url":"https://agents.jojapi.net/apis/anthropic","docs":"https://docs.jojapi.com/consumers/agents"},"paths":{"/models":{"get":{"operationId":"get_models","summary":"List Models","description":"Return a list of available models on this API","responses":{"200":{"description":"Successful response","content":{"application/json":{"example":["claude-haiku-4-5","claude-sonnet-4-6"]}}}}}},"/chat/completions":{"post":{"operationId":"post_chat_completions","summary":"Chat Completion","description":"Creates a model response for the given chat conversation.","tags":["OpenAI Endpoints"],"responses":{"200":{"description":"Successful response","content":{"application/json":{"example":{"id":"msg_bdrk_pbdclzv3ygq62ablyndwwgkqtresojbnx5dsrabzwr7lk7y22vea","object":"chat.completion","created":1794340584,"model":"claude-opus-5-5","choices":[{"index":0,"message":{"role":"assistant","content":"**None.** The gunshot scares the other birds away, and the one that was shot falls out of the tree.\n\n(If you take it as a plain subtraction problem, the answer would be 9, but the riddle is about what real birds would do.)","reasoning_content":"","encrypted_content":"CAQS/QUKEAgTGAI4AUIIdGhpbmtpbmcSDHc0t26J4mLSDANiyxoMsKHe75lIoUvaWUd9IjCqvpKCnXteSocVNUi+uOp8cBL86LMBMBHj8UYOEqk7A7QUQ6rbPoEE4xcdvB9KBv8qmgXX9twlGY+MNOdblXsNgfWd/xPiZ2sAuENWRv/wHwes4UbI1Xl4+9kjw0ftOklELOOxfevrPz0eio4WNCvSbngV1lW1q/CmhAfSzzU5OxGUttbzbjjZNRWwwH8zFGBC+yDWeN0DlvnzlOOVqM7gZlnJtlLyxqgqSjZEgVAJHfkVehLD9zy/JBjrHYWpyphKaaxmXl1tA7fi7hazpJDPEZ17Oe9Guqv0FCf2JTiW0nLhLW5eyJarJAZgjyVH4CHEKsl95Kd7F9mFKIV/alQC+TvD17YSXGzd9zr0Elox8kya3yqRoFzsKgbcytN6EgIZdgtJf6WZodDltJphSokRorKgCvwnHUS3/wn1UMnFsVdP7mTGF6TnnGrGvO2xOqev10NJRty1pROu8VtfwgAcTtBPp5QeNKNkpOgXdivLAwIF86WmsfrV8eYNtCDD5sR6l9U2kMyRKn2dtKQ5R78nAr55VyMtiONr6NqfaMiK0RCmQy7IqXrKAjRlvCw0wxsaZx1kQtaQinrDIsoKPQ55XjNAtK3UJAop2IaSxSCjBK9Qb2ZaFBsQfWXU4/6MGnMKTRkVISbsGBSQKohSy6wyBQcZnQQM7xzQp/nEW/7VimWyW+HsUMJrV9nDgA6HQaw+spNpjZ1AffGRdLJl6EbWNFbn0GpZkYH0NcJ+zq4A8gtKIJuNQ/S+bK8ceBUe1o+6s4dtLkUjKtKJWuK8UcsUn2u3wGNdS7rfTUil2or9kX4h7VFZPwsPgpTmPdFHUSiFekzT9fbYRQUp3TNGaXM4RVp+kAHX99citLtW1oUAvg8RB9vm0xw/G6Ptej1BUJIPbQiaysjQQji33v3IcBf/aLuao0Ci4i+rE9JXxLRRQ9TxyGPuZzfskSgZdeEYAQ=="},"finish_reason":"stop"}],"usage":{"prompt_tokens":37,"completion_tokens":119,"total_tokens":156,"prompt_tokens_details":{},"completion_tokens_details":{"reasoning_tokens":45,"accepted_prediction_tokens":0,"rejected_prediction_tokens":0},"credits_details":{"credits_used":1264,"cost_in_dollars":0.001264}}}}}}},"requestBody":{"content":{"application/json":{"schema":{"type":"object"},"example":{"model":"claude-opus-5-5","messages":[{"role":"user","content":"There are ten birds in a tree. A hunter shoots one. How many are left in the tree?"}]}}}}}},"/responses":{"post":{"operationId":"post_responses","summary":"Responses","description":"Creates a model response. Provide text or image inputs to generate text or JSON outputs. Have the model call your own custom code or use built-in tools like web search or file search to use your own data as input for the model’s response.","tags":["OpenAI Endpoints"],"responses":{"200":{"description":"Successful response","content":{"application/json":{"example":{"created_at":1794340588,"id":"msg_bdrk_7v7lwx5vvrlmk2abugbgytg2k3ri3fl7rpj5lcwvkckgsnnjxxzq","model":"claude-opus-5-5","object":"response","output":[{"type":"message","id":"msg_frosGCXrsk6qE0iyrdPO0tP7KHEPMP9m6P6GoQzlCrGweM1K","status":"completed","role":"assistant","content":[{"type":"output_text","text":"**None.** The sound of the gunshot scares the other birds away, and the one that was shot falls out of the tree.\n\n(The straight arithmetic answer would be 9, but the riddle is about what birds actually do.)"}]}],"status":"completed","text":{"format":{"type":"text"}},"prompt_cache_key":"","safety_identifier":"","usage":{"input_tokens":37,"output_tokens":112,"total_tokens":149,"output_tokens_details":{"reasoning_tokens":42},"input_tokens_details":{"cached_tokens":0},"credits_details":{"credits_used":1194,"cost_in_dollars":0.001194}}}}}}},"requestBody":{"content":{"application/json":{"schema":{"type":"object"},"example":{"model":"claude-opus-5-5","input":"There are ten birds in a tree. A hunter shoots one. How many are left in the tree?"}}}}}},"/messages":{"post":{"operationId":"post_messages","summary":"Messages","description":"The official Anthropic API endpoint for generating conversational responses using Claude models.\n\nThis endpoint supports text and multimodal inputs, including images and documents, depending on the capabilities of the selected model. It also supports multi-turn conversations, system instructions, tool use (function calling), extended thinking, prompt caching, structured content blocks, and configurable generation parameters.","tags":["Anthropic Endpoints"],"responses":{"200":{"description":"Successful response","content":{"application/json":{"example":{"id":"msg_bdrk_lnqciafmspeau7v2ea2zw7yemw6sbeklkupwcmaxaxva5engcpuq","type":"message","role":"assistant","content":[{"type":"thinking","signature":"CAQS/QUKEAgTGAI4AUIIdGhpbmtpbmcSDB/+hhLIxCGyrQKV3BoMHGIZ65lnFxT6al7TIjD/gx6WKZz6xHDb+o7Qc7D+pDGMZ3adu/6FCo46k5/TFE6gfaz7RZLon0QkjnFhz4cqmgXxByUhOR9enf/GwyGoBT1alGEbYjY9E3amNzP8SWqQ2m9gHgGguCT5EnwFmJSS03TCuIYsG220och3tEUkWNtl3r+TCkxQMajhQAnC+n7Zc6aDbKLPchh1TTVFaEiJNfqSi3vAQEWIUo4e6adH/IGnvGqXuUTT1jeQUHeaW1yGZRBslsqu5NJFKqGc7VFva2OtRdvnGS3qdOdFgCCW866aq9EpVgt8imAoIzm8musI5TtU13BjsueSsoDsmQqXG14jIGzom1o4QXBFfpOh2vSFPUD/vDpHzx1Xsnz1vRjLRN3VxdkU7zi827/HkFZU2elBneba8D/cQGoNU2DUILvDH3UaOpuLjqBmVf1X9GWBlgdLri4atmYMljGw5XurS/ELVajcPGQGdg5esndqIpe2TZFwqh70BFRdPjv6t8sdpMYW77Qr6TNdaNfgRgV17WL88fgcHikWxFGvLCoHdlWHcqnSd0lmWoCa6LN0n8duBDwLPTXDzxo1ymvznYBCP7JBOqbkJk2kLTnAKTzMbB942a/6ZgsnraUO84HQS2aq/605wZsrkvsNfwwhp5EGv+beDvfiStMt8Qpan0paAz8wKcsD7AHU9kFCl4+SUwk5gk2RDZJitPop+znfI3iFGkbE7CF6gu9S8uuykSacidBP0WJy94CN7R0UeesC8dfciYXW1Hi1xhqU26VfhJnDNcFvZVLDA/eFm8EkffLLJDA6gpW+7nXFrrUhP8p8YDDdz6pk6PnALg5gF5FZJERJAB20YWGA8vpW/rBjELX7lFpYCZlrAvUjGq5iS1wQRB8UsQBz5lvaBTluYKykjuD6WkgoZ+XBDMBMNrktdtS48IxxELeOI7fBRLltngRVYmf558X1LC7O9vbj7vgYAQ==","thinking":""},{"type":"text","text":"**None.** The gunshot scares the other birds away, and the one that was shot falls out of the tree.\n\n(If you're doing straight arithmetic, the answer would be 9, but the riddle is meant to make you think about what actually happens.)"}],"model":"claude-opus-5-5","stop_reason":"end_turn","usage":{"input_tokens":37,"output_tokens":122,"cache_creation_input_tokens":0,"cache_read_input_tokens":0,"cache_creation":{"ephemeral_1h_input_tokens":0,"ephemeral_5m_input_tokens":0},"service_tier":"standard","output_tokens_details":{"thinking_tokens":45},"cached_tokens":0,"total_tokens":159,"credits_details":{"credits_used":1294,"cost_in_dollars":0.001294}},"container":null}}}}},"requestBody":{"content":{"application/json":{"schema":{"type":"object"},"example":{"model":"claude-opus-5-5","messages":[{"role":"user","content":"There are ten birds in a tree. A hunter shoots one. How many are left in the tree?"}]}}}}}}},"components":{"securitySchemes":{"ApiKeyAuth":{"type":"apiKey","in":"header","name":"X-JoJAPI-Key","description":"Your JoJ API key."}}}}