streams-text.json 1.3 KB

12345678910111213141516171819202122232425262728
  1. {
  2. "version": 1,
  3. "metadata": {
  4. "name": "gemini/streams-text",
  5. "recordedAt": "2026-04-28T21:18:47.483Z",
  6. "tags": ["prefix:gemini", "provider:google", "protocol:gemini"]
  7. },
  8. "interactions": [
  9. {
  10. "transport": "http",
  11. "request": {
  12. "method": "POST",
  13. "url": "https://generativelanguage.googleapis.com/v1beta/models/gemini-2.5-flash:streamGenerateContent?alt=sse",
  14. "headers": {
  15. "content-type": "application/json"
  16. },
  17. "body": "{\"contents\":[{\"role\":\"user\",\"parts\":[{\"text\":\"Reply with exactly: Hello!\"}]}],\"systemInstruction\":{\"parts\":[{\"text\":\"You are concise.\"}]},\"generationConfig\":{\"maxOutputTokens\":80,\"temperature\":0}}"
  18. },
  19. "response": {
  20. "status": 200,
  21. "headers": {
  22. "content-type": "text/event-stream"
  23. },
  24. "body": "data: {\"candidates\": [{\"content\": {\"parts\": [{\"text\": \"Hello!\"}],\"role\": \"model\"},\"finishReason\": \"STOP\",\"index\": 0}],\"usageMetadata\": {\"promptTokenCount\": 11,\"candidatesTokenCount\": 2,\"totalTokenCount\": 29,\"promptTokensDetails\": [{\"modality\": \"TEXT\",\"tokenCount\": 11}],\"thoughtsTokenCount\": 16},\"modelVersion\": \"gemini-2.5-flash\",\"responseId\": \"NyTxaczMAZ-b_uMP6u--iQg\"}\r\n\r\n"
  25. }
  26. }
  27. ]
  28. }