Title: Wrong API URL
Last modified: July 23, 2026

---

# Wrong API URL

 *  [wpblogwriter](https://wordpress.org/support/users/wpblogwriter/)
 * (@wpblogwriter)
 * [2 weeks, 4 days ago](https://wordpress.org/support/topic/wrong-api-url/)
 * Hi,
 * Just tried your plugin to use to an openai compatible api connection. It looks
   like you always use the api.openai.com even if I set a custom api endpoint.
   I
   can see this in the logged requests:Netzwerkfehler beim Senden der Anfrage an
   [https://api.openai.com/v1&#8230](https://api.openai.com/v1&#8230);Best regards,
   WBW

Viewing 1 replies (of 1 total)

 *  Plugin Author [M. Nasikin](https://wordpress.org/support/users/silversh/)
 * (@silversh)
 * [2 weeks, 3 days ago](https://wordpress.org/support/topic/wrong-api-url/#post-18974196)
 * Hi, thank you for testing our plugin.
 * The [https://api.openai.com/…](https://api.openai.com/…) URL you see in the log
   is expected behavior. Koneek registers an OpenAI-compatible provider with the
   WordPress AI Client, so the AI Client initially creates an OpenAI-style request.
   Before that request is actually sent, Koneek intercepts it, converts it to the
   format required by your configured provider, and then dispatches it to the custom
   API endpoint.
 * For OpenAI-compatible custom providers, the most important log entry is “Dispatching
   to connection”. The url shown in that entry should point to your configured custom
   endpoint, such as [https://your-endpoint/v1/chat/completions](https://your-endpoint/v1/chat/completions).
   If “Dispatching to connection” still shows [https://api.openai.com/…](https://api.openai.com/…),
   it means the custom endpoint was not used. In that case, verify that the connection
   is configured as OpenAI Compatible, the custom API URL has been saved correctly,
   and the connection has a valid API key.
 * Here’s log sample when using this valid OpenAI Compatible:
 *     ```wp-block-code
       [2026-07-24 14:38:11] Dispatching to connection {"id":"custom_openai_zai","provider":"custom_openai","model":"glm-4.7-flash","url":"https:\/\/api.z.ai\/api\/paas\/v4\/chat\/completions","timeout":180,"payload":{"length":1178,"keys":["model","messages","max_tokens","temperature"],"summary":{"type":"array","keys":["model","messages","max_tokens","temperature"],"count":4,"items":{"model":{"type":"string","length":13,"preview":"glm-4.7-flash"},"messages":{"type":"array","keys":[0,1],"count":2,"items":[{"type":"array","keys":["role","content"],"count":2,"items":{"role":{"type":"string","length":6,"preview":"system"},"content":{"type":"string","length":861,"preview":"You are an editorial assistant ..."}}},{"type":"array","keys":["role","content"],"count":2,"items":{"role":{"type":"string","length":4,"preview":"user"},"content":{"type":"string","length":157,"preview":"<content>Et fuga porro asperiores et aperiam ducimus cumque. Eum nam dolores id ut sint rerum veniam qui. Qui molestiae sed rerum voluptas tempore.<\/content>"}}}]},"max_tokens":4096,"temperature":0.69999999999999996}}}}[2026-07-24 14:39:17] Provider response received {"id":"custom_openai_zai","provider":"custom_openai","status":200,"body_length":12343,"body_preview":"{\"choices\":[{\"finish_reason\":\"stop\",\"index\":0,\"message\":{\"content\":\"<content>Et autem est et et. Eos ut autem et et et et et. Et et eius et.<\/content>\",\"reasoning_content\":\"1.  **Analyze the Request:**\\n    *   **Role:** Editorial Assistant.\\n    *   **Goal:** Rephrase text within <content> tags.\\n    *   **Constraints:**\\n        *   Preserve meaning and intent.\\n        *   Do not change tone or level of detail.\\n        *   Approximate original length.\\n        *   Output *only* the transformed text.\\n        *   No preamble\/explanation.\\n        *   Preserve inline HTML tags (none in this specific input).\\n        *   Match the original language (Latin).\\n\\n2.  **Analyze the Input:**\\n    *   Text: \\\"Et fuga porro asperiores et aperiam ducimus cumque. Eum nam dolores id ut sint rerum veniam qui. Qui molestiae sed rerum voluptas tempore.\\\"\\n    *   Language: Latin.\\n    *   Content: Lorem Ipsum style text (nonsense Latin words, but follows grammatical patterns).\\n    *   Tone: Aca","parsed_summary":{"text_length":82,"text_preview":"<content>Et autem est et et. Eos ut autem et et et et et. Et et eius et.<\/content>","usage":{"input_tokens":224,"output_tokens":3125,"total_tokens":3349}}}[2026-07-24 14:39:17] Connection succeeded {"id":"custom_openai_zai","priority":1,"attempt":1}[2026-07-24 14:39:17] AI Client response parsed {"model":"gpt-4o","keys":["id","object","status","output","output_text","usage"],"text_length":82,"summary":{"type":"array","keys":["id","object","status","output","output_text","usage"],"count":6,"items":{"id":{"type":"string","length":30,"preview":"xxxxxxx"},"object":{"type":"string","length":8,"preview":"response"},"status":{"type":"string","length":9,"preview":"completed"},"output":{"type":"array","keys":[0],"count":1,"items":[{"type":"array","keys":["type","id","role","status","content"],"count":5,"items":{"type":{"type":"string","length":7,"preview":"message"},"id":{"type":"string","length":40,"preview":"msg_6a5ab8bf-xxxx-xxxx-xxxx-cbb6ec32c363"},"role":{"type":"string","length":9,"preview":"assistant"},"status":{"type":"string","length":9,"preview":"completed"},"content":{"type":"array","keys":[0],"count":1}}}]},"output_text":{"type":"string","length":82,"preview":"<content>Et autem est et et. Eos ut autem et et et et et. Et et eius et.<\/content>"}}}}
       ```
   

Viewing 1 replies (of 1 total)

You must be [logged in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fwrong-api-url%2F%3Foutput_format%3Dmd&locale=en_US)
to reply to this topic.

 * ![](https://ps.w.org/koneek-multi-provider-ai-gateway/assets/icon.svg?rev=3580469)
 * [Koneek - AI Provider for OpenAI-Compatible](https://wordpress.org/plugins/koneek-multi-provider-ai-gateway/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/koneek-multi-provider-ai-gateway/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/koneek-multi-provider-ai-gateway/)
 * [Active Topics](https://wordpress.org/support/plugin/koneek-multi-provider-ai-gateway/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/koneek-multi-provider-ai-gateway/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/koneek-multi-provider-ai-gateway/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [M. Nasikin](https://wordpress.org/support/users/silversh/)
 * Last activity: [2 weeks, 3 days ago](https://wordpress.org/support/topic/wrong-api-url/#post-18974196)
 * Status: not resolved