OPENCODE TO API