{"openapi":"3.1.0","info":{"title":"Imlify API","description":"Effortless ML-powered Moderation & Content Processing API <br><br>[Official website](https://imlify.com)<br>[Get free API key](https://imlify.com) (No credit card required, quick sign-up via GitHub or Google!)","version":"1.1.3"},"servers":[{"url":"https://api.imlify.com","description":"Production server"}],"components":{"securitySchemes":{"bearerAuth":{"type":"http","scheme":"bearer","bearerFormat":"plain"}},"schemas":{}},"security":[{"bearerAuth":[]}],"paths":{"/api/v1/checkContextInput":{"post":{"responses":{"200":{"description":"Successful response","content":{"application/json":{"schema":{"type":"object","properties":{"accepted":{"type":"boolean"},"reason":{"type":"string"}},"required":["accepted","reason"],"example":{"accepted":false,"reason":"Inappropriate for a specialist appointment context."}}}}},"400":{"description":"Validation error","content":{"application/json":{"schema":{"_def":{"unknownKeys":"strip","catchall":{"_def":{"typeName":"ZodNever"},"~standard":{"version":1,"vendor":"zod"}},"typeName":"ZodObject"},"~standard":{"version":1,"vendor":"zod"},"_cached":null}}}},"503":{"description":"Error in AI communication","content":{"text/plain":{"schema":{"_def":{"unknownKeys":"strip","catchall":{"_def":{"typeName":"ZodNever"},"~standard":{"version":1,"vendor":"zod"}},"typeName":"ZodObject"},"~standard":{"version":1,"vendor":"zod"},"_cached":null}}}}},"operationId":"postApiV1CheckContextInput","description":"AI check user-generated content on your website evaluating the context","parameters":[{"in":"query","name":"client_id","schema":{"type":"string","example":"cli_abcdef123456","description":"Optional. Your API client_id for frontend-requests"}}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"prompt":{"type":"string","example":"Get private webcam sessions with me."},"context":{"type":"string","example":"Specialist appointment site, new service title"},"tuning":{"type":"string","description":"optional, advanced moderation instructions for AI moderator"},"max_units":{"type":"number","example":100,"description":"optional, how many CU can be used for this request"},"model":{"type":"string","description":"optional, which model to use","example":"latest"},"proxy":{"type":"string","description":"optional, use proxy for model request","example":"eu"}},"required":["prompt"]}}}}}},"/api/v1/checkGrammar":{"post":{"responses":{"200":{"description":"Successful response","content":{"application/json":{"schema":{"type":"object","properties":{"isCorrect":{"type":"boolean"},"reason":{"type":"string"},"suggestedVersion":{"type":"string"}},"required":["isCorrect","reason","suggestedVersion"],"example":{"isCorrect":false,"reason":"Spelling mistake","suggestedVersion":"Yes, like any AI or human moderation system, there is a chance that our system can make mistakes. We are constantly working to improve our system and reduce the number of errors."}}}}},"400":{"description":"Validation error","content":{"application/json":{"schema":{"_def":{"unknownKeys":"strip","catchall":{"_def":{"typeName":"ZodNever"},"~standard":{"version":1,"vendor":"zod"}},"typeName":"ZodObject"},"~standard":{"version":1,"vendor":"zod"},"_cached":null}}}},"503":{"description":"Error in AI communication","content":{"text/plain":{"schema":{"_def":{"unknownKeys":"strip","catchall":{"_def":{"typeName":"ZodNever"},"~standard":{"version":1,"vendor":"zod"}},"typeName":"ZodObject"},"~standard":{"version":1,"vendor":"zod"},"_cached":null}}}}},"operationId":"postApiV1CheckGrammar","description":"Automatically fix typos, grammar, and style issues on your website.","parameters":[{"in":"query","name":"client_id","schema":{"type":"string","example":"cli_abcdef123456","description":"Optional. Your API client_id for frontend-requests"}}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"prompt":{"type":"string","example":"Yes, like any AI or hooman moderation sistem, there is a chanse that our sistem can makes oopsies. We are constently working to improove our sistem and reduse the number of bloopers."},"max_units":{"type":"number","example":100},"model":{"type":"string","example":"latest"}},"required":["prompt"]}}}}}},"/api/v1/checkImage":{"post":{"responses":{"200":{"description":"Successful response","content":{"application/json":{"schema":{"type":"object","properties":{"flagged":{"type":"boolean"}},"required":["flagged"],"example":{"flagged":true}}}}},"400":{"description":"Input error (e.g. invalid image URL)","content":{"application/json":{"schema":{"_def":{"unknownKeys":"strip","catchall":{"_def":{"typeName":"ZodNever"},"~standard":{"version":1,"vendor":"zod"}},"typeName":"ZodObject"},"~standard":{"version":1,"vendor":"zod"},"_cached":null}}}},"503":{"description":"Error in AI communication","content":{"text/plain":{"schema":{"_def":{"unknownKeys":"strip","catchall":{"_def":{"typeName":"ZodNever"},"~standard":{"version":1,"vendor":"zod"}},"typeName":"ZodObject"},"~standard":{"version":1,"vendor":"zod"},"_cached":null}}}}},"operationId":"postApiV1CheckImage","description":"AI check user-provided image for inappropriate content","parameters":[{"in":"query","name":"client_id","schema":{"type":"string","example":"cli_abcdef123456","description":"Optional. Your API client_id for frontend-requests"}}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"prompt":{"type":"string","example":"https://example.com/image.jpg"}},"required":["prompt"]}}}}}}}}