Get app remote configuration
Returns the remote configuration that one of OhMyGPT's own apps reads at launch: the oldest version that may still run, the version to suggest updating to, mirror addresses, and feature switches. Responses are cached for five minutes.
client*stringThe app. ios-console is the iOS app OhMyGPT API Console.
Successful response
application/json- response
features*Switches for features that are not on by default, keyed by feature name.
minimumVersion*stringVersions below this one must update before the app can be used.
^(0|[1-9]\d*)\.(0|[1-9]\d*)\.(0|[1-9]\d*)$mirrors*Interchangeable addresses for each service, in order of preference. The first one is the default. Apps measure latency and use the fastest one that answers.
notice*An announcement to show in the app. Null when there is none.
recommendedVersion*stringVersions below this one are offered an update that the user can dismiss.
^(0|[1-9]\d*)\.(0|[1-9]\d*)\.(0|[1-9]\d*)$regions*The network route each mirror takes, keyed by mirror URL.
storeUrl*stringThe app's App Store page. Null until the app is listed.
uriupdateMessage*Text keyed by language tag, such as en and zh-Hans.
curl -X GET 'https://api.ohmygpt.com/v1/clients/string/config'{ "features": { "property1": true, "property2": true }, "minimumVersion": "string", "mirrors": { "attachment": [ "http://example.com" ], "backend": [ "http://example.com" ], "chat": [ "http://example.com" ], "chatSite": [ "http://example.com" ], "consoleSite": [ "http://example.com" ] }, "notice": { "property1": "string", "property2": "string" }, "recommendedVersion": "string", "regions": { "property1": "us", "property2": "us" }, "storeUrl": "http://example.com", "updateMessage": { "property1": "string", "property2": "string" }}Still stuck? Live chat · [email protected] · Telegram group
Stream generated content (Gemini) POST
The streaming form of `generateContent`: the same request, answered as server-sent events, each `data:` line one `GenerateContentResponse` chunk. The stream has no terminal frame, so it carries no cost comment; the request's cost is in the usage records (`GET /v1/generation`).
Create embedding POST
Generate vector representations of text. Supports multiple embedding providers.