{ "opencollection": "1.0.0", "info": { "name": "Morph API", "version": "3.0" }, "request": { "auth": { "type": "bearer", "token": "{{bearerToken}}" } }, "items": [ { "info": { "name": "Apply", "type": "folder" }, "items": [ { "info": { "name": "Apply a code edit", "type": "http" }, "http": { "method": "POST", "url": "https://api.morphllm.com/v1/chat/completions", "body": { "type": "json", "data": "{\n \"model\": \"morph-v3-fast\",\n \"messages\": [\n {\n \"role\": \"user\",\n \"content\": \"...\\n...\\n...\"\n }\n ]\n}" } }, "docs": "Fast Apply code merging via the OpenAI-compatible chat completions endpoint using morph-v3-fast, morph-v3-large, or auto." } ] }, { "info": { "name": "Embeddings", "type": "folder" }, "items": [ { "info": { "name": "Create embeddings", "type": "http" }, "http": { "method": "POST", "url": "https://api.morphllm.com/v1/embeddings", "body": { "type": "json", "data": "{\n \"model\": \"morph-embedding-v4\",\n \"input\": \"...\",\n \"encoding_format\": \"float\"\n}" } }, "docs": "OpenAI-compatible embeddings tuned for code using morph-embedding-v4." } ] }, { "info": { "name": "Rerank", "type": "folder" }, "items": [ { "info": { "name": "Rerank documents", "type": "http" }, "http": { "method": "POST", "url": "https://api.morphllm.com/v1/rerank", "body": { "type": "json", "data": "{\n \"model\": \"morph-rerank-v3\",\n \"query\": \"...\",\n \"documents\": [\"...\"],\n \"top_n\": 2\n}" } }, "docs": "Cohere-client-compatible reranking for code-aware retrieval using morph-rerank-v3." } ] } ] }