{"uid":"cap_Bpje-7ozL56IuaLFKkI_t","slug":"agents-openwebninja-com-chatgpt-chat-via-openweb-ninja-21ead3d9","name":"ChatGPT Chat via OpenWeb Ninja","description":"Chat with OpenAI ChatGPT with support for continuous conversation and markdown/plain-text.","url":"https://agents.openwebninja.com/chatgpt/chat?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","required":["message"],"properties":{"message":{"type":"string","example":"Hello","description":"Message to send to ChatGPT."},"markdown":{"type":"boolean","default":true,"description":"Whether to return the ChatGPT response message in markdown format. By default, the bot reply is in markdown format.\n"}}},"responseSchema":{"type":"object","required":["status","request_id","data"],"properties":{"data":{"type":"object","required":["reply_text"],"properties":{"reply_text":{"type":"string","description":"The ChatGPT reply, formatted as markdown when markdown=true (default), otherwise plain text."},"content_references":{"type":"object","properties":{"videos":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","description":"Video platform ID (e.g. YouTube video id)."},"title":{"type":"string","description":"Title of the video."},"source":{"type":"string","description":"Source platform of the video (e.g. youtube)."},"end_idx":{"type":"integer","description":"End character offset of the reference inside reply_text."},"start_idx":{"type":"integer","description":"Start character offset of the reference inside reply_text."},"video_url":{"type":"string","description":"Canonical URL of the video."},"thumbnail_url":{"type":"string","nullable":true,"description":"URL of the video thumbnail image."}}},"description":"Videos referenced in the reply."},"sources":{"type":"array","items":{"type":"object","properties":{"end_idx":{"type":"integer","description":"End character offset of the reference inside reply_text."},"sources":{"type":"array","items":{"type":"object","properties":{"url":{"type":"string","description":"Canonical URL of the source."},"title":{"type":"string","description":"Title of the source."},"source":{"type":"string","description":"Source/publisher name."},"snippet":{"type":"string","nullable":true,"description":"Short excerpt from the source, when available."},"pub_date":{"type":"string","nullable":true,"description":"Publication date of the source (ISO 8601), when known."}}},"description":"Individual sources in this aggregation."},"start_idx":{"type":"integer","description":"Start character offset of the reference inside reply_text."}}},"description":"Aggregated source citations referenced in the reply."},"link_groups":{"type":"array","items":{"type":"object","properties":{"links":{"type":"array","items":{"type":"object","properties":{"url":{"type":"string","description":"Canonical URL of the linked page."},"title":{"type":"string","description":"Title of the linked page."},"source":{"type":"string","description":"Source/publisher name of the linked page."},"snippet":{"type":"string","nullable":true,"description":"Short excerpt from the linked page."},"pub_date":{"type":"string","nullable":true,"description":"Publication date of the linked source (ISO 8601), when known."}}},"description":"Links in this group."},"end_idx":{"type":"integer","description":"End character offset of the reference inside reply_text."},"start_idx":{"type":"integer","description":"Start character offset of the reference inside reply_text."}}},"description":"Groups of links referenced inline in the reply."},"link_titles":{"type":"array","items":{"type":"object","properties":{"url":{"type":"string","description":"Canonical URL of the link."},"title":{"type":"string","description":"Display title of the link."},"end_idx":{"type":"integer","description":"End character offset of the reference inside reply_text."},"start_idx":{"type":"integer","description":"Start character offset of the reference inside reply_text."}}},"description":"Standalone titled links referenced in the reply."},"image_groups":{"type":"array","items":{"type":"object","properties":{"title":{"type":"string","nullable":true,"description":"Title of the image group."},"images":{"type":"array","items":{"type":"object","properties":{"image_url":{"type":"string","description":"Direct URL to the image."},"source_url":{"type":"string","description":"URL of the page where the image originates."},"thumbnail_url":{"type":"string","description":"URL to the image thumbnail."}}},"description":"Individual images in the group."},"layout":{"type":"string","description":"Recommended display layout. Values: carousel, grid."},"end_idx":{"type":"integer","description":"End character offset of the reference inside reply_text."},"start_idx":{"type":"integer","description":"Start character offset of the reference inside reply_text."},"image_size":{"type":"string","nullable":true,"description":"Reported image size (e.g. 'small', 'large')."},"aspect_ratio":{"type":"string","description":"Aspect ratio of the images in the group."},"thumbnail_size":{"type":"string","nullable":true,"description":"Reported thumbnail size."},"thumbnail_crop_info":{"type":"object","nullable":true,"description":"Crop metadata for the thumbnail, when provided upstream."}}},"description":"Groups of images referenced in the reply."}},"description":"Structured content references (videos, images, links, sources) cited inline in reply_text. Each entry includes start_idx/end_idx pointing back into the text."}}},"status":{"type":"string","description":"The status of the API response."},"request_id":{"type":"string","description":"A unique ID to trace the API request."}}},"example":null,"exampleRequest":null,"tags":[],"displayCostAmount":"unknown","displayCostAsset":"USD","priceDynamic":true,"priceHint":null,"priceStatus":"unprobed","priceSource":"registry","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"unknown","summary":"price unknown","primary":{"kind":"dynamic","protocol":"mpp","network":"tempo","amountUsd":null,"per":"call","confidence":"unknown"},"accepted":[{"kind":"dynamic","protocol":"mpp","network":"tempo","amountUsd":null,"per":"call","confidence":"unknown"}]},"paymentMethods":[{"uid":"pm_izA9kEOZWQAfGakZ0yhvd","protocol":"mpp","methodType":"crypto","chain":"tempo","mode":"charge","costAmount":"unknown","costPer":"request","priority":0,"asset":null,"unit":"request","depositMicros":null,"planRef":null}],"brandName":"agents.openwebninja.com","brandSlug":"agents-openwebninja-com-x402","brandBaseUrl":"https://agents.openwebninja.com","brandDocsUrl":null,"whatItDoes":"Send a message to OpenAI ChatGPT and receive a reply with optional markdown formatting and content references including sources and videos.","exampleAgentPrompt":"Ask ChatGPT: 'What are the main differences between transformer and recurrent neural network architectures?' and give me the answer formatted as markdown.","exampleUseCases":[{"title":"Explain a technical concept to a user","prompt":"Ask ChatGPT to explain how public key cryptography works, in plain language suitable for a non-technical audience, and return the answer as markdown."},{"title":"Draft a professional email reply","prompt":"Have ChatGPT write a polite but firm reply to a vendor who missed a deadline — the context is that they promised delivery by Monday and it's now Thursday with no update. Give me the draft as plain text, no markdown."},{"title":"Answer a research question with sources","prompt":"Ask ChatGPT what the current scientific consensus is on the health effects of intermittent fasting, and make sure to include any source references it cites."}],"resultDescription":"Returns a JSON object containing a reply_text field with ChatGPT's response (in markdown or plain text), plus optional content_references with structured arrays of video references (with YouTube IDs, titles, URLs, thumbnails, and character offsets), source citations (with URLs, titles, snippets, publication dates, and character offsets), and link groups — all keyed by character position within the reply text.","failureModes":["Missing required 'message' field returns validation error","Upstream OpenAI API unavailability causes 5xx error","Rate limiting or quota exhaustion on the proxy layer","Very long messages may be truncated or rejected","Ambiguous or policy-violating prompts may result in refusal responses from ChatGPT","Payment/authentication failure on the proxy layer returns 402 or 401"],"whenToPreferThis":"Choose this endpoint when you need to integrate ChatGPT's conversational capability into an agent workflow without managing your own OpenAI API keys, especially when you want structured content references (sources, videos, links) alongside the reply text, or when you need markdown vs plain-text output toggling. Prefer this over direct OpenAI integration when operating within the OpenWeb Ninja ecosystem for unified billing and proxying.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-14T00:36:56.096Z","isFirstParty":false,"canonicalSlug":"agents-openwebninja-com-chatgpt-chat-via-openweb-ninja-21ead3d9"}