You’ll need to use the C API https://www.gurobi.com/documentation/11.0/refman/c_agc_poly.html
Something like:
using JuMP, Gurobi
column(x::VariableRef) = Gurobi.c_column(backend(owner_model(x)), index(x))
model = direct_model(Gurobi.Optimizer())
@variable(model, x)
@variable(model, y)
p = [3.0, 0.0, 0.0, 7.0, 3.0]
GRBaddgenconstrPoly(backend(model), C_NULL, column(x), column(y), 5, p, "")
optimize!(model)
See also: Can't solve a problem with nonlinear terms like x^0.7 or x^3 using JuMP with Gurobi 11 - #8 by odow