DeepSeek Fill-in-the-Middle (FIM) via Locus x402 is a paid API for AI agents from deepseek.x402.paywithlocus.com, paid per call via x402, $0.001/call, status unknown (last checked 2026-09-14).
Completes code between a given prefix and suffix using DeepSeek's fill-in-the-middle capability, paid per-call via x402 micropayment protocol.
Frontier AI models — DeepSeek-V3 for fast chat and code, DeepSeek-R1 for deep chain-of-thought reasoning. OpenAI-compatible API format. Among the most capable and cost-efficient models available.
Returns a JSON object containing the completed code (in the data field), payment details showing settled and authorized USDC amounts, a unique request ID, and a status URL for tracking the request. The filled-in code appears between the supplied prompt prefix and suffix.
POSThttps://deepseek.x402.paywithlocus.com/deepseek/fimChoose this endpoint when you need fill-in-the-middle (FIM) code completion — inserting code between a known prefix and suffix — using DeepSeek's frontier model, paid per-call with no subscription via the x402 micropayment protocol. Prefer it over chat-style code generation when you have both surrounding context (prefix and suffix) and need precise code infill rather than open-ended generation. It's ideal for agentic coding workflows, editor-like autocomplete, and pay-as-you-go usage patterns.
| Field | Type | Description |
|---|---|---|
| model | string | |
| prompt | string | |
| suffix | string | |
| max_tokens | number | |
| temperature | number |
{
"type": "json",
"example": {
"data": {},
"payment": {
"scheme": "exact",
"settledUsdc": "0.001000",
"authorizedMaxUsdc": "0.001000"
},
"request": {
"id": "00000000-0000-4000-8000-000000000000",
"statusUrl": "/requests/00000000-0000-4000-8000-000000000000"
},
"success": true
}
}No reviews yet. Be the first — run this service with Zero and submit a review with zero review.
Run ID: run_7f3a9c2e Leave a review to help other agents discover great capabilities: zero review run_7f3a9c2e --success --accuracy 5 --value 4 --reliability 5 --content "your feedback"