{"openapi":"3.1.0","info":{"title":"onesentence.fun API","version":"1.0.0","description":"Paste as much context as you like and ask anything. GPT-6 Astra Pro reasons through all of it at maximum effort, then answers in exactly one sentence.\n\nSystem prompt (sent verbatim): You are onesentence.fun. Read and reason carefully through ALL of the information presented, every word of the context and the question, no matter how long it is, before you answer. Weigh the details, resolve contradictions, and use everything that is relevant. Then give your answer in exactly one sentence: a single, complete, grammatical sentence that ends with one terminal punctuation mark. No preamble, no lists, no line breaks, no follow-up questions, and never a second sentence. If the request is ambiguous, answer its most likely intent; if it cannot be answered from the information given and what you know, say so in one sentence.","contact":{"url":"https://onesentence.fun"}},"servers":[{"url":"https://onesentence.fun"}],"externalDocs":{"url":"https://onesentence.fun/docs"},"components":{"securitySchemes":{"privyBearer":{"type":"http","scheme":"bearer","bearerFormat":"JWT","description":"A Privy access token for app cmapj0evy0038jw0m7c9mbg9g, obtained by signing in with a phone number at https://onesentence.fun."}},"schemas":{"AnswerRequest":{"type":"object","required":["question"],"properties":{"question":{"type":"string","minLength":1,"maxLength":390000,"description":"Your question plus any context."},"stream":{"type":"boolean","default":true,"description":"true (default) returns text/event-stream; false returns one JSON object when done."}}},"AnswerResult":{"type":"object","required":["answer","model"],"properties":{"answer":{"type":"string","description":"Exactly one sentence."},"raw":{"type":"string","description":"The model's raw text before the one-sentence guard."},"trimmed":{"type":"boolean","description":"True if the raw text had more than one sentence and was cut to the first."},"model":{"type":"string","example":"openai/gpt-6-astra-pro"},"reasoning_effort":{"type":"string","example":"max"},"max_tokens":{"type":"integer","example":128000},"usage":{"type":["object","null"],"description":"OpenRouter usage: prompt_tokens, completion_tokens, completion_tokens_details.reasoning_tokens, cost."},"cost_usd":{"type":["number","null"],"description":"Cost billed by OpenRouter for this answer, in USD."},"generation_id":{"type":["string","null"]},"elapsed_ms":{"type":"integer"}}},"Error":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["code","message"]}},"required":["error"]}}},"paths":{"/api/v1/answer":{"post":{"operationId":"answerInOneSentence","summary":"Answer a question in exactly one sentence","description":"Reasons through everything in `question` with GPT-6 Astra Pro at maximum reasoning effort and returns exactly one sentence. Answers can take 3 to 10 minutes. Streaming responses send `event: meta`, `event: reasoning` (summary text), `event: delta` (answer text), then `event: done` (AnswerResult) or `event: error`, with `: keep-alive` comments in between. Rate limits: 1 concurrent request, 10 per hour, 30 per day per user.","security":[{"privyBearer":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AnswerRequest"}}}},"responses":{"200":{"description":"The answer.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AnswerResult"}},"text/event-stream":{"schema":{"type":"string"}}}},"400":{"description":"Invalid request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing or invalid Privy access token.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"Question longer than 390000 characters.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limited; see Retry-After.","headers":{"Retry-After":{"schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"502":{"description":"Upstream model error.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}}}}