{"slug":"1gateway-dev-v1-files-upload-282902","title":"Use when an agent must hand a file to another tool, agent or person without a st","host":"1gateway.dev","method":"POST","resource":"https://1gateway.dev/v1/files/upload","category":"image","description":"Use when an agent must hand a file to another tool, agent or person without a storage account. Input: POST the file (raw body or multipart file), ?visibility=private|public, ttl_days 1-7. png/jpeg/webp ≤5 MB, pdf ≤25 MB, text/json/csv ≤256 KB. EVM payer owns it. Images, PDFs, public text AI-screened","price_listed":0.0066,"price_asked":0.0066,"state":"answering","state_label":"Answering","checks_7d":7,"answered_7d":7,"latency_ms_median":1928,"reported_calls_30d":6,"reported_payers_30d":2,"networks":["eip155:137","eip155:143","eip155:42161","eip155:8453","solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp"],"badge":"unverified","paid_checks_7d":0,"paid_ok_7d":0,"example_input":{"body":{"url":"https://example.com/"},"bodyType":"json","method":"POST","type":"http"},"output_schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","properties":{"input":{"additionalProperties":false,"properties":{"body":{"anyOf":[{"required":["url"]},{"required":["contentBase64"]}],"properties":{"contentBase64":{"description":"The document bytes, base64 (alternative to url; max 10 MB decoded)","type":"string"},"filename":{"description":"Original file name, e.g. report.hwp (helps detection)","maxLength":255,"type":"string"},"type":{"description":"Optional expected type; mismatch → 415 before payment (not charged)","enum":["html","text","pdf","docx","hwp","hwpx"],"type":"string"},"url":{"description":"Public http(s) URL of the document (alternative to contentBase64)","maxLength":2048,"pattern":"^https?://","type":"string"}}},"bodyType":{"enum":["json","form-data","text"],"type":"string"},"method":{"enum":["POST"],"type":"string"},"type":{"const":"http","type":"string"}},"required":["type","method","bodyType","body"],"type":"object"},"output":{"properties":{"example":{"additionalProperties":true,"properties":{"createdAt":{"type":"string"},"expiresAt":{"type":"string"},"filename":{"type":"string"},"id":{"type":"string"},"mime":{"type":"string"},"price":{"type":"string"},"sha256":{"type":"string"},"size":{"type":"integer"},"status":{"type":"string"},"visibility":{"type":"string"}},"required":["status","id","visibility","mime","size","sha256","filename","createdAt","expiresAt","price"],"type":"object"},"type":{"type":"string"}},"required":["type"],"type":"object"}},"required":["input"],"type":"object"},"history":[{"day":"2026-11-26","reachable":true,"status":402,"valid_402":true,"asked_usdc":0.0066,"price_match":true,"latency_ms":2349,"error":null},{"day":"2026-11-25","reachable":true,"status":402,"valid_402":true,"asked_usdc":0.0066,"price_match":true,"latency_ms":1592,"error":null},{"day":"2026-11-24","reachable":true,"status":402,"valid_402":true,"asked_usdc":0.0066,"price_match":true,"latency_ms":1563,"error":null},{"day":"2026-11-23","reachable":true,"status":402,"valid_402":true,"asked_usdc":0.0066,"price_match":true,"latency_ms":1928,"error":null},{"day":"2026-11-22","reachable":true,"status":402,"valid_402":true,"asked_usdc":0.0066,"price_match":true,"latency_ms":1945,"error":null},{"day":"2026-11-21","reachable":true,"status":402,"valid_402":true,"asked_usdc":0.0066,"price_match":true,"latency_ms":2034,"error":null},{"day":"2026-11-20","reachable":true,"status":402,"valid_402":true,"asked_usdc":0.0066,"price_match":true,"latency_ms":1760,"error":null},{"day":"2026-11-19","reachable":true,"status":402,"valid_402":true,"asked_usdc":0.0066,"price_match":true,"latency_ms":1741,"error":null},{"day":"2026-11-18","reachable":true,"status":402,"valid_402":true,"asked_usdc":0.0066,"price_match":true,"latency_ms":1547,"error":null},{"day":"2026-11-17","reachable":true,"status":402,"valid_402":true,"asked_usdc":0.0066,"price_match":true,"latency_ms":1437,"error":null},{"day":"2026-11-16","reachable":true,"status":402,"valid_402":true,"asked_usdc":0.0066,"price_match":true,"latency_ms":1497,"error":null},{"day":"2026-11-15","reachable":true,"status":402,"valid_402":true,"asked_usdc":0.0066,"price_match":true,"latency_ms":1467,"error":null},{"day":"2026-11-14","reachable":true,"status":402,"valid_402":true,"asked_usdc":0.0066,"price_match":true,"latency_ms":1425,"error":null},{"day":"2026-11-13","reachable":true,"status":402,"valid_402":true,"asked_usdc":0.0066,"price_match":false,"latency_ms":1459,"error":null},{"day":"2026-11-12","reachable":true,"status":402,"valid_402":true,"asked_usdc":0.0066,"price_match":false,"latency_ms":1479,"error":null},{"day":"2026-11-11","reachable":true,"status":402,"valid_402":true,"asked_usdc":0.0066,"price_match":false,"latency_ms":1435,"error":null},{"day":"2026-11-10","reachable":true,"status":402,"valid_402":true,"asked_usdc":0.0065,"price_match":true,"latency_ms":1480,"error":null},{"day":"2026-11-09","reachable":true,"status":402,"valid_402":true,"asked_usdc":0.0065,"price_match":true,"latency_ms":1465,"error":null}],"description_full":"Use when an agent must hand a file to another tool, agent or person without a storage account. Input: POST the file (raw body or multipart file), ?visibility=private|public, ttl_days 1-7. png/jpeg/webp ≤5 MB, pdf ≤25 MB, text/json/csv ≤256 KB. EVM payer owns it. Images, PDFs, public text AI-screened (private text when shared); unsafe = not stored, charged. Output: id, url if public (else /v1/files/sign). No secrets. Example: POST a png ?visibility=public","last_updated":"2026-11-25T12:51:35.851Z","schemes":["exact"]}